Skip to content

Commit

Permalink
fix(GlobeControl): stop damping when launching new animation
Browse files Browse the repository at this point in the history
  • Loading branch information
mgermerie committed Jan 7, 2022
1 parent 37cfb90 commit dad7641
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controls/GlobeControls.js
Expand Up @@ -1138,6 +1138,8 @@ class GlobeControls extends THREE.EventDispatcher {
* @return {Promise} A promise that resolves when transformation is complete
*/
lookAtCoordinate(params = {}, isAnimated = this.isAnimationEnabled()) {
this.player.stop();

if (!params.isExtent) {
if (params.zoom) {
params.range = this.view.tileLayer.computeDistanceCameraFromTileZoom(params.zoom, this.view.camera);
Expand Down

0 comments on commit dad7641

Please sign in to comment.