Merge pull request #399 from muratclk/fix/trim-handle-boundary-clamp

fix: clamp trim handle end position to timeline boundary
This commit is contained in:
Sid
2026-05-09 10:19:12 -07:00
committed by GitHub
@@ -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 };
},