防止 Opera 鼠标手势
是否可以阻止 Opera 鼠标右键手势?我有 html5 上的网络应用程序,我决定使用鼠标右键。但它在 Opera 中不起作用,因为 Opera 有鼠标手势。
event.preventDefault(); // 它不起作用
可能有人知道吗?
谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它实际上与具体的手势没有任何关系。默认情况下,Opera 不允许脚本检测上下文菜单事件,因此您必须要求用户更改您站点的站点首选项,以允许脚本检测上下文菜单事件。
右键单击->编辑站点首选项 ->脚本(选项卡)->允许脚本检测上下文菜单事件
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