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:
Dave Leaver 2014-03-20 13:05:06 +13:00 committed by Vladimir Agafonkin
parent 0f0d66f3df
commit b42500b48a

View File

@ -10,7 +10,9 @@ L.Map.include({
center = this._limitCenter(L.latLng(center), zoom, this.options.maxBounds);
options = options || {};
this.stop();
if (this._panAnim) {
this._panAnim.stop();
}
if (this._loaded && !options.reset && options !== true) {