iVis-at-Bilkent / cytoscape.js-context-menus

A Cytoscape.js extension to provide context menu around elements and core instance
MIT License
87 stars 41 forks source link

Display context menu on touch screen #35

Closed invaders-xx closed 4 years ago

invaders-xx commented 4 years ago

I am not able to display the context menu on a touch screen : I tried with two fingers with no success. Is there a way to bind the display of the menu on an event tap ou touch ?

Many thanks in advance,

David

hasanbalci commented 4 years ago

Two-finger tap is already bound to display menu. It works both in my laptop's and in my smartphone's touch screen. However, it is a little bit harder in the smartphone.

Hoogkamer commented 4 years ago

I also experience problems with the two-finger tap. I created a PR to give the option to use taphold, which works better on touch screens in my experience.

Regards, Michael

hasanbalci commented 4 years ago

Taphold option is added (especially for touchscreens) thanks to @Hoogkamer in the unstable branch. It will be available with the next release.