A transitionEnd event only finished a zoom animation if it is for a transform. Fixes #2255

This commit is contained in:
danzel 2013-12-06 14:54:48 +13:00
parent c287eccef3
commit 46a379adb7

View File

@ -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();
}
},