Skip to content

Commit

Permalink
Suppress auxclick events
Browse files Browse the repository at this point in the history
  • Loading branch information
JustOff committed Jul 13, 2017
1 parent 9288b50 commit e858190
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bootstrap.js
Expand Up @@ -991,6 +991,9 @@ function changeUI(window) {
&& e.originalTarget.nextSibling)
globalEventHandler("clickOnFirstChild", e.originalTarget.parentNode, e);
});
listen(window, enhancedURLBar, "auxclick", function(e) {
if (e.button == 2) e.preventDefault();
});
listen(window, enhancedURLBar, "DOMMouseScroll", function(e) {
if (e.originalTarget.parentNode.parentNode == enhancedURLBar)
globalEventHandler("scroll", e.originalTarget.parentNode, e);
Expand Down

0 comments on commit e858190

Please sign in to comment.