fix: dragging time ruler would trigger the selection box

This commit is contained in:
Maze Winther
2025-07-11 04:19:39 +02:00
parent 4d67e366ad
commit ac0d089bf7

View File

@ -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 },