mirror of https://github.com/gorhill/uBlock.git
#44: meant to use mousedown...
This commit is contained in:
parent
36a15e2e02
commit
3e96a70a0f
|
@ -906,11 +906,11 @@ var uBlockCollapser = (function() {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
window.addEventListener('contextmenu', onMouseClick, true);
|
window.addEventListener('mousedown', onMouseClick, true);
|
||||||
|
|
||||||
// https://github.com/gorhill/uMatrix/issues/144
|
// https://github.com/gorhill/uMatrix/issues/144
|
||||||
vAPI.shutdown.add(function() {
|
vAPI.shutdown.add(function() {
|
||||||
document.removeEventListener('contextmenu', onMouseClick, true);
|
document.removeEventListener('mousedown', onMouseClick, true);
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue