Merge pull request #2269 from danzel/fix-2255-hurray

A transitionEnd event only finishes a zoom animation if it is for a transform
This commit is contained in:
Vladimir Agafonkin 2013-12-06 02:14:50 -08:00
commit 1974ae7003

View File

@ -24,8 +24,8 @@ if (L.DomUtil.TRANSITION) {
L.Map.include(!L.DomUtil.TRANSITION ? {} : { L.Map.include(!L.DomUtil.TRANSITION ? {} : {
_catchTransitionEnd: function () { _catchTransitionEnd: function (e) {
if (this._animatingZoom) { if (this._animatingZoom && e.propertyName.indexOf('transform') >= 0) {
this._onZoomTransitionEnd(); this._onZoomTransitionEnd();
} }
}, },