From 3cf46b657cfbcf615341c638232b79acf4e8850d Mon Sep 17 00:00:00 2001 From: Chris Needham Date: Sat, 5 Oct 2024 14:09:09 +0100 Subject: [PATCH] Don't use passive touchend event See #550 --- src/mouse-drag-handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mouse-drag-handler.js b/src/mouse-drag-handler.js index 14b7772b..0fee1bc9 100644 --- a/src/mouse-drag-handler.js +++ b/src/mouse-drag-handler.js @@ -92,7 +92,7 @@ MouseDragHandler.prototype._mouseDown = function(event) { window.addEventListener('mousemove', this._mouseMove, { capture: false, passive: true }); window.addEventListener('touchmove', this._mouseMove, { capture: false, passive: true }); window.addEventListener('mouseup', this._mouseUp, { capture: false, passive: true }); - window.addEventListener('touchend', this._mouseUp, { capture: false, passive: true }); + window.addEventListener('touchend', this._mouseUp, { capture: false /* , passive: true */ }); window.addEventListener('blur', this._mouseUp, { capture: false, passive: true }); };