Only stop the pan animation within pan animation. If there is a zoom animation going on we don't want to stop it. Otherwise big mouse wheel zooms are broken.
This commit is contained in:
parent
0f0d66f3df
commit
b42500b48a
@ -10,7 +10,9 @@ L.Map.include({
|
|||||||
center = this._limitCenter(L.latLng(center), zoom, this.options.maxBounds);
|
center = this._limitCenter(L.latLng(center), zoom, this.options.maxBounds);
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
|
||||||
this.stop();
|
if (this._panAnim) {
|
||||||
|
this._panAnim.stop();
|
||||||
|
}
|
||||||
|
|
||||||
if (this._loaded && !options.reset && options !== true) {
|
if (this._loaded && !options.reset && options !== true) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user