summaryrefslogtreecommitdiff
path: root/apps/web/src/stores/timeline-store.ts
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-07-19 16:19:06 +0200
committerMaze Winther <mazewinther@gmail.com>2025-07-19 16:19:06 +0200
commit42ae8a75302fa9cdc4821f356f8d91ac9d358dcf (patch)
treed14103db3d150fb62552b0787ba464810ae07a2a /apps/web/src/stores/timeline-store.ts
parent0d95f032cc03c70709e3b5d181e63e3f29983977 (diff)
downloadopencut-42ae8a75302fa9cdc4821f356f8d91ac9d358dcf.tar.gz
fix: ensure dragging/resizing an element on the timeline doesn't deselect it
Diffstat (limited to 'apps/web/src/stores/timeline-store.ts')
-rw-r--r--apps/web/src/stores/timeline-store.ts8
1 files changed, 0 insertions, 8 deletions
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<TimelineStore["dragState"]>) => void;
startDrag: (
elementId: string,
@@ -231,8 +230,6 @@ export const useTimelineStore = create<TimelineStore>((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<TimelineStore>((set, get) => {
clickOffsetTime: 0,
currentTime: 0,
},
- justFinishedDragging: true,
});
-
- setTimeout(() => {
- set({ justFinishedDragging: false });
- }, 50);
},
// Persistence methods