diff --git a/src/dom/Draggable.js b/src/dom/Draggable.js index d5d515f3..12586b58 100644 --- a/src/dom/Draggable.js +++ b/src/dom/Draggable.js @@ -69,6 +69,9 @@ L.Draggable = L.Evented.extend({ }, _onDown: function (e) { + // Ignore simulated events, since we handle both touch and + // mouse explicitly; otherwise we risk getting duplicates of + // touch events, see #4315. if (e._simulated) { return; } this._moved = false; @@ -102,6 +105,9 @@ L.Draggable = L.Evented.extend({ }, _onMove: function (e) { + // Ignore simulated events, since we handle both touch and + // mouse explicitly; otherwise we risk getting duplicates of + // touch events, see #4315. if (e._simulated) { return; } if (e.touches && e.touches.length > 1) {