fix: dragging time ruler would trigger the selection box
This commit is contained in:
@ -41,6 +41,10 @@ export function useSelectionBox({
|
|||||||
if ((e.target as HTMLElement).closest("[data-track-labels]")) {
|
if ((e.target as HTMLElement).closest("[data-track-labels]")) {
|
||||||
return;
|
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({
|
setSelectionBox({
|
||||||
startPos: { x: e.clientX, y: e.clientY },
|
startPos: { x: e.clientX, y: e.clientY },
|
||||||
|
Reference in New Issue
Block a user