fix(web): do not write the camera when toggling Camera to View

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-13 10:02:17 +08:00
parent e49ba9e60b
commit 8a9f4b3676

View File

@@ -133,7 +133,7 @@ export class ViewportNavigation {
setCameraLock(locked:boolean):void{
this.cameraLock=locked;this.setCameraNavigationControls();
this.canvas.dataset.cameraLocked=String(this.cameraLock);
this.publish();
this.changing=true;this.publish();this.changing=false;
}
cameraToView():void{
if(this.cameraView||!this.sceneCamera)return;