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

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

Proper way to conditionally trigger on left click (tap)? #78

Open city-unit opened 1 year ago

city-unit commented 1 year ago

Just a quick ask for best practices on calling the context menu on a left click / tap (while the default is still cxttap). This is similar to this issue: https://github.com/iVis-at-Bilkent/cytoscape.js-context-menus/issues/54, but I am simply calling a .trigger('cxttap') on the given node that was tapped on, however this is not causing a context menu to show up (unless I have previously created a menu via right click elsewhere). Any thoughts on how best to do this?