Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

export zoom focus clamping

Siddharth4ab8f3d1f1af
diff --git a/src/lib/exporter/frameRenderer.ts b/src/lib/exporter/frameRenderer.ts
index 0e7cfe2de..9caa4d2aa 100644
--- a/src/lib/exporter/frameRenderer.ts
+++ b/src/lib/exporter/frameRenderer.ts
@@ -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 {