Skip to content

Commit

Permalink
Fix: Prevent scrolling on newer browsers where passive-mode for touch…
Browse files Browse the repository at this point in the history
… is enabled by default.
  • Loading branch information
Bartheyrman22 committed May 14, 2018
1 parent cc3662a commit 28bcb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/core/base-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Base_tools_class {
_this.dragMove(event);
if(event.target.id === "canvas_minipaint" && !$('.scroll').has($(event.target)).length)
event.preventDefault();
});
}, {passive: false});
document.addEventListener('touchend', function (event) {
_this.dragEnd(event);
});
Expand Down

0 comments on commit 28bcb5e

Please sign in to comment.