From 42ae8a75302fa9cdc4821f356f8d91ac9d358dcf Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sat, 19 Jul 2025 16:19:06 +0200 Subject: fix: ensure dragging/resizing an element on the timeline doesn't deselect it --- apps/web/src/stores/timeline-store.ts | 8 -------- 1 file changed, 8 deletions(-) (limited to 'apps/web/src/stores') diff --git a/apps/web/src/stores/timeline-store.ts b/apps/web/src/stores/timeline-store.ts index c85f5bd2..9a2c7361 100644 --- a/apps/web/src/stores/timeline-store.ts +++ b/apps/web/src/stores/timeline-store.ts @@ -74,7 +74,6 @@ interface TimelineStore { clickOffsetTime: number; currentTime: number; }; - justFinishedDragging: boolean; setDragState: (dragState: Partial) => void; startDrag: ( elementId: string, @@ -231,8 +230,6 @@ export const useTimelineStore = create((set, get) => { // Snapping settings defaults snappingEnabled: true, - justFinishedDragging: false, - getSortedTracks: () => { const { _tracks } = get(); const tracksWithMain = ensureMainTrack(_tracks); @@ -941,12 +938,7 @@ export const useTimelineStore = create((set, get) => { clickOffsetTime: 0, currentTime: 0, }, - justFinishedDragging: true, }); - - setTimeout(() => { - set({ justFinishedDragging: false }); - }, 50); }, // Persistence methods -- cgit v1.3.1