diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-04-13 04:41:10 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-04-13 05:08:29 +0200 |
| commit | 36efdf66e707c818b81009acf8a00630a0309ca1 (patch) | |
| tree | d3eb1a97429ab1554d05450d5c2242517054ee6e /apps/web/src/hooks/timeline/element/use-element-interaction.ts | |
| parent | 2272598d420cf078aaa3928246bfa3a414f6eddb (diff) | |
| download | opencut-36efdf66e707c818b81009acf8a00630a0309ca1.tar.gz | |
feat: expandable keyframe lanes in timeline
Made-with: Cursor
Diffstat (limited to 'apps/web/src/hooks/timeline/element/use-element-interaction.ts')
| -rw-r--r-- | apps/web/src/hooks/timeline/element/use-element-interaction.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/web/src/hooks/timeline/element/use-element-interaction.ts b/apps/web/src/hooks/timeline/element/use-element-interaction.ts index efaacb6a..beac1879 100644 --- a/apps/web/src/hooks/timeline/element/use-element-interaction.ts +++ b/apps/web/src/hooks/timeline/element/use-element-interaction.ts @@ -41,6 +41,8 @@ const MOUSE_BUTTON_RIGHT = 2; const initialDragState: ElementDragState = { isDragging: false, elementId: null, + dragElementIds: [], + dragTimeOffsets: {}, trackId: null, startMouseX: 0, startMouseY: 0, @@ -202,6 +204,8 @@ export function useElementInteraction({ setDragState({ isDragging: true, elementId, + dragElementIds: elementId ? [elementId] : [], + dragTimeOffsets: {}, trackId, startMouseX, startMouseY, @@ -521,6 +525,7 @@ export function useElementInteraction({ }, [ dragState.isDragging, dragState.elementId, + dragState.startElementTime, dragState.startMouseY, dragState.trackId, dragState.currentTime, |
