[Pkg-javascript-commits] [leaflet] 286/301: A transitionEnd event only finished a zoom animation if it is for a transform. Fixes #2255

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:57 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 bda5ce1a94ae458f50411cf5af0e7c1474cae86b
Author: danzel <danzel at localhost.geek.nz>
Date:   Fri Dec 6 14:54:48 2013 +1300

    A transitionEnd event only finished a zoom animation if it is for a transform. Fixes #2255
---
 src/map/anim/Map.ZoomAnimation.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/map/anim/Map.ZoomAnimation.js b/src/map/anim/Map.ZoomAnimation.js
index e40a840..ead4fbd 100644
--- a/src/map/anim/Map.ZoomAnimation.js
+++ b/src/map/anim/Map.ZoomAnimation.js
@@ -24,8 +24,8 @@ if (L.DomUtil.TRANSITION) {
 
 L.Map.include(!L.DomUtil.TRANSITION ? {} : {
 
-	_catchTransitionEnd: function () {
-		if (this._animatingZoom) {
+	_catchTransitionEnd: function (e) {
+		if (this._animatingZoom && e.propertyName.indexOf('transform') >= 0) {
 			this._onZoomTransitionEnd();
 		}
 	},

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