From 6fbf2a21bfab279045fcd87ae1ee99f7f05c93d0 Mon Sep 17 00:00:00 2001 From: danzel Date: Fri, 9 Nov 2012 16:13:52 +1300 Subject: [PATCH] Move reflow into PosAnimation.stop so users don't have to implement it themselves. --- src/dom/PosAnimation.js | 1 + src/map/anim/Map.PanAnimation.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom/PosAnimation.js b/src/dom/PosAnimation.js index 19a2ec24..e9004420 100644 --- a/src/dom/PosAnimation.js +++ b/src/dom/PosAnimation.js @@ -34,6 +34,7 @@ L.PosAnimation = L.Class.extend({ L.DomUtil.setPosition(this._el, this._getPos()); this._onTransitionEnd(); + L.Util.falseFn(this._container.offsetWidth); // force reflow in case we are about to start a new animation }, // you can't easily get intermediate values of properties animated with CSS3 Transitions, diff --git a/src/map/anim/Map.PanAnimation.js b/src/map/anim/Map.PanAnimation.js index 6ee9b8b4..a0e519a3 100644 --- a/src/map/anim/Map.PanAnimation.js +++ b/src/map/anim/Map.PanAnimation.js @@ -10,7 +10,6 @@ L.Map.include({ if (this._panAnim) { this._panAnim.stop(); - L.Util.falseFn(this._container.offsetWidth); // force reflow } var done = (zoomChanged ?