Skip to content

Commit 9114e25

Browse files
committed
fix: update max zoom duration to start of next zoom segment
1 parent 58acdc3 commit 9114e25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/desktop/src/routes/editor/ConfigSidebar.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1766,7 +1766,10 @@ function ZoomSegmentConfig(props: {
17661766
)
17671767
}
17681768
minValue={props.segment.start + 1}
1769-
maxValue={project.timeline?.segments?.[0].end}
1769+
maxValue={
1770+
project.timeline?.zoomSegments[props.segmentIndex + 1]?.start ||
1771+
project.timeline?.segments[0].end
1772+
}
17701773
step={0.001}
17711774
formatTooltip={(v: number) => {
17721775
const duration = v - props.segment.start;

0 commit comments

Comments
 (0)