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 =
|
this.lastCameraStateTraceSnapshot =
|
||||||
cloneViewportPanelCameraState(nextCameraState);
|
cloneViewportPanelCameraState(nextCameraState);
|
||||||
this.pendingSmoothZoomCameraStateCommit = false;
|
this.pendingSmoothZoomCameraStateCommit = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user