Skip to content

Commit

Permalink
#44: meant to use mousedown...
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Sep 10, 2015
1 parent 36a15e2 commit 3e96a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/contentscript-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -906,11 +906,11 @@ var uBlockCollapser = (function() {
});
};

window.addEventListener('contextmenu', onMouseClick, true);
window.addEventListener('mousedown', onMouseClick, true);

// https://github.com/gorhill/uMatrix/issues/144
vAPI.shutdown.add(function() {
document.removeEventListener('contextmenu', onMouseClick, true);
document.removeEventListener('mousedown', onMouseClick, true);
});
})();

Expand Down

0 comments on commit 3e96a70

Please sign in to comment.