Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
525 views
Welcome To Ask or Share your Answers For Others

1 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...