diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-07-11 04:19:39 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-07-11 04:19:39 +0200 |
| commit | ac0d089bf76df1c0895432c5b35114a66d8b906d (patch) | |
| tree | 2a8e57a8d3855c321c38e669350f5d0948e271a4 /apps/web/src/hooks/use-selection-box.ts | |
| parent | 4d67e366ad23e1d3b23b6bc33d4b4a4eefa6e7c5 (diff) | |
| download | opencut-ac0d089bf76df1c0895432c5b35114a66d8b906d.tar.gz | |
fix: dragging time ruler would trigger the selection box
Diffstat (limited to 'apps/web/src/hooks/use-selection-box.ts')
| -rw-r--r-- | apps/web/src/hooks/use-selection-box.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/web/src/hooks/use-selection-box.ts b/apps/web/src/hooks/use-selection-box.ts index 4caecf17..c40617c1 100644 --- a/apps/web/src/hooks/use-selection-box.ts +++ b/apps/web/src/hooks/use-selection-box.ts @@ -41,6 +41,10 @@ export function useSelectionBox({ if ((e.target as HTMLElement).closest("[data-track-labels]")) {
return;
}
+ // Don't start selection when clicking in the ruler area - this interferes with playhead dragging
+ if ((e.target as HTMLElement).closest("[data-ruler-area]")) {
+ return;
+ }
setSelectionBox({
startPos: { x: e.clientX, y: e.clientY },
|
