#44: meant to use mousedown...

This commit is contained in:
gorhill 2015-09-10 14:01:16 -04:00
parent 36a15e2e02
commit 3e96a70a0f
1 changed files with 2 additions and 2 deletions

View File

@ -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);
});
})();