Skip to content

Commit

Permalink
Fix popup position update on map move (#13412) (h/t @ThugRaven)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThugRaven authored Feb 21, 2025
1 parent 6563f75 commit df4901f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4358,7 +4358,9 @@ export class Map extends Camera {
averageElevationChanged = this._updateAverageElevation(frameStartTime);
this.style.updateSources(this.transform);
// Update positions of markers and popups on enabling/disabling terrain
this._forceMarkerAndPopupUpdate();
if (!this.isMoving()) {
this._forceMarkerAndPopupUpdate();
}
} else {
averageElevationChanged = this._updateAverageElevation(frameStartTime);
}
Expand Down

0 comments on commit df4901f

Please sign in to comment.