[Pkg-javascript-commits] [leaflet] 25/78: work around a transitionend Chrome bug, close #3689
Jonas Smedegaard
dr at jones.dk
Sat May 7 08:58:44 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet.
commit 91477588faa44e2b266d86a5a44cb98490244d39
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date: Wed Aug 26 18:48:09 2015 +0200
work around a transitionend Chrome bug, close #3689
---
src/map/anim/Map.ZoomAnimation.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/map/anim/Map.ZoomAnimation.js b/src/map/anim/Map.ZoomAnimation.js
index 8b7d3f5..1180b38 100644
--- a/src/map/anim/Map.ZoomAnimation.js
+++ b/src/map/anim/Map.ZoomAnimation.js
@@ -88,10 +88,13 @@ L.Map.include(!L.DomUtil.TRANSITION ? {} : {
delta: delta,
backwards: backwards
});
+ // horrible hack to work around a Chrome bug https://github.com/Leaflet/Leaflet/issues/3689
+ setTimeout(L.bind(this._onZoomTransitionEnd, this), 250);
}, this);
},
_onZoomTransitionEnd: function () {
+ if (!this._animatingZoom) return;
this._animatingZoom = false;
--
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