Skip state updates if camera state is unchanged

This commit is contained in:
2026-04-30 02:38:21 +02:00
parent 5910e934a6
commit 24d4592c34

View File

@@ -1805,6 +1805,11 @@ export class ViewportHost {
)
});
if (cameraStatesEqual) {
this.pendingSmoothZoomCameraStateCommit = false;
return;
}
this.lastCameraStateTraceSnapshot =
cloneViewportPanelCameraState(nextCameraState);
this.pendingSmoothZoomCameraStateCommit = false;