From 28bcb5e507da3566c67713537db24781192e89bd Mon Sep 17 00:00:00 2001 From: Bart Heyrman Date: Mon, 14 May 2018 13:53:31 +0200 Subject: [PATCH] Fix: Prevent scrolling on newer browsers where passive-mode for touch is enabled by default. --- src/js/core/base-tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/core/base-tools.js b/src/js/core/base-tools.js index 4982da2d..fbdd5836 100644 --- a/src/js/core/base-tools.js +++ b/src/js/core/base-tools.js @@ -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); });