chore(pane): cleanup

This commit is contained in:
moklick
2025-10-16 10:33:47 +02:00
parent 6bb64b3ed6
commit a16fc575c8
2 changed files with 6 additions and 8 deletions
@@ -91,7 +91,7 @@
}
// We start the selection process when the user clicks down on the pane
function onPointerDown(event: PointerEvent) {
function onPointerDownCapture(event: PointerEvent) {
containerBounds = container?.getBoundingClientRect();
const isNoKeyEvent =
@@ -235,7 +235,7 @@
class:dragging={store.dragging}
class:selection={isSelecting}
onclick={hasActiveSelection ? undefined : wrapHandler(onClick, container)}
onpointerdowncapture={hasActiveSelection ? onPointerDown : undefined}
onpointerdowncapture={hasActiveSelection ? onPointerDownCapture : undefined}
onpointermove={hasActiveSelection ? onPointerMove : undefined}
onpointerup={hasActiveSelection ? onPointerUp : undefined}
oncontextmenu={wrapHandler(onContextMenu, container)}