From 58551506f292cb9965f2adf53d1799fed7d2eae4 Mon Sep 17 00:00:00 2001 From: danzel Date: Mon, 2 Dec 2013 14:06:47 +1300 Subject: [PATCH] Don't fire dragend if a dragstart did not occur due to a multitouch action. fixes #2256 --- src/dom/Draggable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom/Draggable.js b/src/dom/Draggable.js index 65b2ae01..d81790e8 100644 --- a/src/dom/Draggable.js +++ b/src/dom/Draggable.js @@ -121,7 +121,7 @@ L.Draggable = L.Class.extend({ L.DomUtil.enableImageDrag(); L.DomUtil.enableTextSelection(); - if (this._moved) { + if (this._moved && this._moving) { // ensure drag is not fired after dragend L.Util.cancelAnimFrame(this._animRequest);