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
Hello, I'm using the ContextMenu component to create a custom context menu for some items on my web page. On desktop browser, the context menu is displayed when you right-click trigger component, as expected.
However, on a touchscreen mobile device (iOS Safari), the context menu shows up when you simply tap/click the trigger component. Triggering the menu when you tap an item is very disruptive in my case because I have a different handler for the click/tap event. I would have expected the context menu to show up after a long tap, not a simple tap.
My workaround is to hide the context menu on small screens using media queries (it's better for me not show the menu than to show it unexpectedly in ways that can disrupt or annoy the user), but I'd like to know whether it's possible to configure the menu to appear on long-taps and whether this is the expected behaviour for custom context menu on mobile devices.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I'm using the ContextMenu component to create a custom context menu for some items on my web page. On desktop browser, the context menu is displayed when you right-click trigger component, as expected.
However, on a touchscreen mobile device (iOS Safari), the context menu shows up when you simply tap/click the trigger component. Triggering the menu when you tap an item is very disruptive in my case because I have a different handler for the click/tap event. I would have expected the context menu to show up after a long tap, not a simple tap.
My workaround is to hide the context menu on small screens using media queries (it's better for me not show the menu than to show it unexpectedly in ways that can disrupt or annoy the user), but I'd like to know whether it's possible to configure the menu to appear on long-taps and whether this is the expected behaviour for custom context menu on mobile devices.
I'm using
radix-vue
1.5.3
.My code looks something like:
Beta Was this translation helpful? Give feedback.
All reactions