Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions apps/desktop/src/routes/editor/ConfigSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1753,6 +1753,30 @@ function ZoomSegmentConfig(props: {
formatTooltip="x"
/>
</Field>
<Field name="Zoom Duration" icon={<IconLucideClock />}>
<Slider
value={[props.segment.end]}
onChange={(v) =>
setProject(
"timeline",
"zoomSegments",
props.segmentIndex,
"end",
v[0]
)
}
minValue={props.segment.start + 1}
maxValue={
project.timeline?.zoomSegments[props.segmentIndex + 1]?.start ||
project.timeline?.segments[0].end
}
step={0.001}
formatTooltip={(v: number) => {
const duration = v - props.segment.start;
return `${duration.toFixed(2)}s`;
}}
/>
</Field>
<Field name="Zoom Mode" icon={<IconCapSettings />}>
<KTabs
class="space-y-6"
Expand Down
5 changes: 5 additions & 0 deletions apps/desktop/src/routes/editor/Timeline/ZoomTrack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ export function ZoomTrack(props: {
},
},
});

setEditorState("timeline", "selection", {
type: "zoom",
index,
});
})
);
});
Expand Down