Skip to content

Commit df4901f

Browse files
authored
Fix popup position update on map move (#13412) (h/t @ThugRaven)
1 parent 6563f75 commit df4901f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ui/map.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -4358,7 +4358,9 @@ export class Map extends Camera {
43584358
averageElevationChanged = this._updateAverageElevation(frameStartTime);
43594359
this.style.updateSources(this.transform);
43604360
// Update positions of markers and popups on enabling/disabling terrain
4361-
this._forceMarkerAndPopupUpdate();
4361+
if (!this.isMoving()) {
4362+
this._forceMarkerAndPopupUpdate();
4363+
}
43624364
} else {
43634365
averageElevationChanged = this._updateAverageElevation(frameStartTime);
43644366
}

0 commit comments

Comments
 (0)