Reputation: 714
Is it possible to prevent opera mouse gestures for right button? I have web app on html5 and I decided to use right mouse button. But it doesnt work in opera, because opera has mouse gestures.
event.preventDefault(); // it doesn't work
May be anybody knows?
Thank you.
Upvotes: 2
Views: 826
Reputation: 1845
It doesn't actually have anything to do with gestures specifically. Opera doesn't allow scripts to detect context menu events by default so you'd have to ask users to change their site preferences for your site to allow scripts to detect context menu events.
Right click -> Edit Site Preferences -> Scripting (tab) -> Allow scripts to detect context menu events
Upvotes: 2