diff options
author | gorhill <rhill@raymondhill.net> | 2015-09-10 14:01:16 -0400 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-09-10 14:01:16 -0400 |
commit | 3e96a70a0f396bc8c05d0744ebd7f288185aa503 (patch) | |
tree | 25971defb0fe38d4b065d647fb3aaa7b3d52de35 /src | |
parent | 36a15e2e0241595131f8783c7bf6f6fa2ed8c870 (diff) | |
download | uBlock-3e96a70a0f396bc8c05d0744ebd7f288185aa503.zip uBlock-3e96a70a0f396bc8c05d0744ebd7f288185aa503.tar.gz uBlock-3e96a70a0f396bc8c05d0744ebd7f288185aa503.tar.bz2 |
#44: meant to use mousedown...
Diffstat (limited to 'src')
-rw-r--r-- | src/js/contentscript-end.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/contentscript-end.js b/src/js/contentscript-end.js index 152339a..c12ff7b 100644 --- a/src/js/contentscript-end.js +++ b/src/js/contentscript-end.js @@ -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); }); })(); |