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:
commit
1974ae7003
@ -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();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user