summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyteq <DerpsDer.es@gmail.com>2025-06-23 14:14:06 +0300
committerHyteq <DerpsDer.es@gmail.com>2025-06-23 14:14:06 +0300
commit3540226af59481aa304dadc041071b74ba7dbcf5 (patch)
tree777b7ac12a231e47c9580e26182e1692d3b330e3
parentb7ccce954e82bb07891ebbb6d3bed557ea0a1a26 (diff)
downloadopencut-3540226af59481aa304dadc041071b74ba7dbcf5.tar.gz
fix: clips duplicating when moving them around
-rw-r--r--apps/web/src/components/editor/timeline.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsx
index 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 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);