diff --git a/src/components/video-editor/timeline/TimelineWrapper.tsx b/src/components/video-editor/timeline/TimelineWrapper.tsx index 3616f1838..4c668f0b9 100644 --- a/src/components/video-editor/timeline/TimelineWrapper.tsx +++ b/src/components/video-editor/timeline/TimelineWrapper.tsx @@ -57,7 +57,7 @@ export default function TimelineWrapper({ const duration = Math.min(Math.max(rawDuration, minDuration), totalMs); const start = Math.max(0, Math.min(normalizedStart, totalMs - duration)); - const end = start + duration; + const end = Math.min(start + duration, totalMs); return { start, end }; },