Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(desktop): remove unnecessary type cast on cursor rotationAmount

Richie McIlroyf6fcbb2c7938
diff --git a/apps/desktop/src/routes/editor/ConfigSidebar.tsx b/apps/desktop/src/routes/editor/ConfigSidebar.tsx
index 7ba48e6bb..91117b678 100644
--- a/apps/desktop/src/routes/editor/ConfigSidebar.tsx
+++ b/apps/desktop/src/routes/editor/ConfigSidebar.tsx
@@ -622,9 +622,7 @@ export function ConfigSidebar() {
<Field name="Tilt" icon={<IconLucideRotate3d class="size-4" />}>
<Slider
value={[project.cursor.rotationAmount ?? 0.15]}
- onChange={(v) =>
- setProject("cursor", "rotationAmount" as any, v[0])
- }
+ onChange={(v) => setProject("cursor", "rotationAmount", v[0])}
minValue={0}
maxValue={1}
step={0.01}