File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,9 @@ Map.include(/** @lends Map.prototype */{
165165 } ,
166166
167167 _animateTo ( view , options = { } , step ) {
168+ if ( this . _mapAnimPlayer ) {
169+ this . _stopAnim ( this . _mapAnimPlayer ) ;
170+ }
168171 this . _isInternalAnimation = true ;
169172 this . _mapAnimPlayer = this . animateTo ( view , options , step ) ;
170173 delete this . _isInternalAnimation ;
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ Map.include(/** @lends Map.prototype */{
5252
5353 onZoomStart ( nextZoom , origin ) {
5454 if ( ! this . options [ 'zoomable' ] || this . isZooming ( ) ) { return ; }
55+ if ( this . _mapAnimPlayer ) {
56+ this . _stopAnim ( this . _mapAnimPlayer ) ;
57+ }
5558 this . _zooming = true ;
5659 this . _startZoomVal = this . getZoom ( ) ;
5760 this . _startZoomCoord = this . _containerPointToPrj ( origin ) ;
You can’t perform that action at this time.
0 commit comments