1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-03 01:29:39 +02:00

#44: meant to use mousedown...

This commit is contained in:
gorhill 2015-09-10 14:01:16 -04:00
parent 36a15e2e02
commit 3e96a70a0f

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