add onselectionstart onselectionend

This commit is contained in:
peterkogo
2025-05-13 17:44:28 +02:00
parent 17646123de
commit ec9d4f3145
4 changed files with 21 additions and 3 deletions
@@ -50,6 +50,8 @@
selectionOnDrag,
onpaneclick,
onpanecontextmenu,
onselectionstart,
onselectionend,
children
}: PaneProps<NodeType, EdgeType> = $props();
@@ -115,7 +117,7 @@
y
};
// onSelectionStart?.(event);
onselectionstart?.(event);
}
function onPointerMove(event: PointerEvent) {
@@ -201,7 +203,7 @@
selectionInProgress = false;
}
// onSelectionEnd?.(event);
onselectionend?.(event);
}
const onContextMenu = (event: MouseEvent) => {