Merge pull request #2259 from danzel/fix2256

Don't fire dragend if a dragstart did not occur due to a multitouch action
This commit is contained in:
Vladimir Agafonkin 2013-12-03 04:31:03 -08:00
commit bc686476fd

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