[Pkg-javascript-commits] [leaflet] 278/301: Don't fire dragend if a dragstart did not occur due to a multitouch action. fixes #2256

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit 58551506f292cb9965f2adf53d1799fed7d2eae4
Author: danzel <danzel at localhost.geek.nz>
Date:   Mon Dec 2 14:06:47 2013 +1300

    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 65b2ae0..d81790e 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);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list