[Pkg-javascript-commits] [leaflet] 15/40: backport #2503 fix false-positive drag on tap
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 16:33:07 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 2d911c20ef6c7fba0891255bf07496241d3b7baf
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date: Mon Apr 28 14:23:18 2014 +0300
backport #2503 fix false-positive drag on tap
---
src/dom/Draggable.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/dom/Draggable.js b/src/dom/Draggable.js
index d81790e..eea0cd2 100644
--- a/src/dom/Draggable.js
+++ b/src/dom/Draggable.js
@@ -82,6 +82,7 @@ L.Draggable = L.Class.extend({
offset = newPoint.subtract(this._startPoint);
if (!offset.x && !offset.y) { return; }
+ if (L.Browser.touch && Math.abs(offset.x) + Math.abs(offset.y) < 3) { return; }
L.DomEvent.preventDefault(e);
--
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