Force a reflow when stopping a PanAnimation to start a ZoomAnimation so that the svg animation works correctly. Fixes #1125
This commit is contained in:
parent
dbd4da6255
commit
128b615a08
@ -10,6 +10,7 @@ L.Map.include({
|
|||||||
|
|
||||||
if (this._panAnim) {
|
if (this._panAnim) {
|
||||||
this._panAnim.stop();
|
this._panAnim.stop();
|
||||||
|
L.Util.falseFn(this._container.offsetWidth); // force reflow
|
||||||
}
|
}
|
||||||
|
|
||||||
var done = (zoomChanged ?
|
var done = (zoomChanged ?
|
||||||
|
Loading…
Reference in New Issue
Block a user