From 3540226af59481aa304dadc041071b74ba7dbcf5 Mon Sep 17 00:00:00 2001 From: Hyteq Date: Mon, 23 Jun 2025 14:14:06 +0300 Subject: [PATCH] fix: clips duplicating when moving them around --- apps/web/src/components/editor/timeline.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsx index f6d9fdd..50a64db 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 states dragCounterRef.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);