Don't fire dragend if a dragstart did not occur due to a multitouch action. fixes #2256

This commit is contained in:
danzel 2013-12-02 14:06:47 +13:00
parent 16d12f4ac0
commit 58551506f2

View File

@ -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);