Skip state updates if camera state is unchanged
This commit is contained in:
@@ -1805,6 +1805,11 @@ export class ViewportHost {
|
||||
)
|
||||
});
|
||||
|
||||
if (cameraStatesEqual) {
|
||||
this.pendingSmoothZoomCameraStateCommit = false;
|
||||
return;
|
||||
}
|
||||
|
||||
this.lastCameraStateTraceSnapshot =
|
||||
cloneViewportPanelCameraState(nextCameraState);
|
||||
this.pendingSmoothZoomCameraStateCommit = false;
|
||||
|
||||
Reference in New Issue
Block a user