You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't tested it in touch devices, but it should work on them. Just attach the appearance of the menu to the event you want (see the examples). For example:
.on('contextmenu', d3.contextMenu(menu)); // attach menu to element
That attaches the menu to the right-click event ("contextmenu"). You could change "contextmenu" to "click" and it should cause the menu to appear when the object is clicked/touched.
Can we integrate context menu for touch devices?
The text was updated successfully, but these errors were encountered: