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
{{ message }}
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.
How to disable contextmenu on mobile and let the setted events to trigger normally (onclick/ondbclick) setted on the ContextMenuTrigger tag?
The html tag that trigger the menu has onclick and ondbclick events. These events aren't fired on mobile devices but on PC they get fired. The context menu is fired on right-click(Desktop) and on long-press(mobile). Is possible to disable completely like there is no contextmenu on mobile?
The text was updated successfully, but these errors were encountered:
danbovey
added a commit
to danbovey/react-contextmenu
that referenced
this issue
Apr 22, 2017
I don't know why it's there, holding for right click and opening the menu doesn't cause a link to be clicked, and so without it onclick events work for content inside the ContextMenuTrigger!
* Remove e.preventDefault from handleTouchEnd
As far as I'm aware, this isn't needed. Fixes#98.
* Touch handled for mobile, Mobile view on examples
* Remove static from touchHandled
* Move inside lambda function
* Expand setTimeout
* Update ContextMenuTrigger.js
* Set touchHandled = false
* Remove trailing spaces
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How to disable contextmenu on mobile and let the setted events to trigger normally (onclick/ondbclick) setted on the ContextMenuTrigger tag?
The html tag that trigger the menu has onclick and ondbclick events. These events aren't fired on mobile devices but on PC they get fired. The context menu is fired on right-click(Desktop) and on long-press(mobile). Is possible to disable completely like there is no contextmenu on mobile?
The text was updated successfully, but these errors were encountered: