export zoom focus clamping

This commit is contained in:
Siddharth
2026-02-28 12:36:50 -08:00
parent 4bac15cb44
commit 4ab8f3d1f1
+1 -1
View File
@@ -385,7 +385,7 @@ export class FrameRenderer {
private clampFocusToStage(focus: { cx: number; cy: number }, depth: number): { cx: number; cy: number } {
if (!this.layoutCache) return focus;
return clampFocusToStageUtil(focus, depth as any, this.layoutCache);
return clampFocusToStageUtil(focus, depth as any, this.layoutCache.stageSize);
}
private updateAnimationState(timeMs: number): number {