Preventing opera mouse gestures

僤鯓⒐⒋嵵緔 提交于 2019-11-28 09:23:24

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/7012383/preventing-opera-mouse-gestures

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!