Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(editor): add keep camera size during zoom toggle

Richie McIlroy34f0240fd510
diff --git a/apps/desktop/src/routes/editor/ConfigSidebar.tsx b/apps/desktop/src/routes/editor/ConfigSidebar.tsx
index 037e361f9..45bf13cb2 100644
--- a/apps/desktop/src/routes/editor/ConfigSidebar.tsx
+++ b/apps/desktop/src/routes/editor/ConfigSidebar.tsx
@@ -2798,6 +2798,21 @@ function CameraConfig(props: { scrollRef: HTMLDivElement }) {
formatTooltip="%"
/>
</Field>
+ <Subfield name="Keep original size during zoom">
+ <Toggle
+ checked={
+ (project.camera.scaleDuringZoom ??
+ DEFAULT_CAMERA_SCALE_DURING_ZOOM) >= 1
+ }
+ onChange={(keep) =>
+ setProject(
+ "camera",
+ "scaleDuringZoom",
+ keep ? 1 : DEFAULT_CAMERA_SCALE_DURING_ZOOM,
+ )
+ }
+ />
+ </Subfield>
<Field name="Rounded Corners" icon={<IconCapCorners class="size-4" />}>
<div class="flex flex-col gap-3">
<Slider