The open-source CapCut alternative
fix: clips duplicating when moving them around
Hyteq3540226af594
diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsxindex f6d9fdde..50a64dbb 100644--- a/apps/web/src/components/editor/timeline.tsx+++ b/apps/web/src/components/editor/timeline.tsx@@ -903,6 +903,7 @@ function TimelineTrackContent({const handleTrackDrop = (e: React.DragEvent) => {e.preventDefault();+ e.stopPropagation();// Reset all drag statesdragCounterRef.current = 0;@@ -985,7 +986,6 @@ function TimelineTrackContent({updateClipStartTime(track.id, clipId, snappedTime);} else {// Moving to different track- console.log('Moving clip from', fromTrackId, 'to', track.id);moveClipToTrack(fromTrackId, track.id, clipId);requestAnimationFrame(() => {updateClipStartTime(track.id, clipId, snappedTime);