Skip to content

Commit

Permalink
Rectification for #437 (added code to the bundled content script js)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbendebiene committed Jan 25, 2020
1 parent 67bed45 commit b7bf954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/workarounds/content.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ function removeEventListener$2 (event, callback) {
* Add the document event listener
**/
function enable$3 () {
targetElement$2.addEventListener('wheel', handleWheel, true);
targetElement$2.addEventListener('wheel', handleWheel, {capture: true, passive: false});
targetElement$2.addEventListener('mousedown', handleMousedown$2, true);
targetElement$2.addEventListener('mouseup', handleMouseup$2, true);
targetElement$2.addEventListener('click', handleClick$1, true);
Expand All @@ -1304,7 +1304,7 @@ function enable$3 () {
**/
function disable$3 () {
preventDefault$1 = true;
targetElement$2.removeEventListener('wheel', handleWheel, true);
targetElement$2.removeEventListener('wheel', handleWheel, {capture: true, passive: false});
targetElement$2.removeEventListener('mousedown', handleMousedown$2, true);
targetElement$2.removeEventListener('mouseup', handleMouseup$2, true);
targetElement$2.removeEventListener('click', handleClick$1, true);
Expand Down

0 comments on commit b7bf954

Please sign in to comment.