javascript - How to disable Opera's right-click drag gestures programmatically? -
window.addeventlistener("contextmenu", function(e) { e.preventdefault(); return false; });
while above code overrides "right click menu" intended, seems, opera have right-click gestures, when hold down "right-click" button, , swipe left, browser goes back
in game "right click" utilised, results in unintentional back/forward events repeatedly
i'm looking programmatic solution fix issue, there events fired can caught , prevented?
ps. i'm aware there old questions try solve same issue: how disable opera mouse gestures? - if there still no programmatic solution issue, add warning game nudge people use chrome instead
why not this?
var w = window; $(w).mousedown(function () { if (w.opera || navigator.useragent.match(/opera|opr\//)) $(this).bind("mousemove", function () { return false; }); } });
note: right click captured mousedown.
Comments
Post a Comment