Get clicked handle element from event.currentTarget

This commit is contained in:
Karlo Bistrički
2025-07-31 15:55:11 +02:00
parent bb5bf60e5d
commit 428f2e8fb9
3 changed files with 5 additions and 4 deletions
@@ -120,6 +120,7 @@ function HandleComponent(
return;
}
const handleElement = event.currentTarget
const isMouseTriggered = isMouseEvent(event.nativeEvent);
if (
@@ -128,7 +129,7 @@ function HandleComponent(
) {
const currentStore = store.getState();
XYHandle.onPointerDown(event.nativeEvent, {
XYHandle.onPointerDown(event.nativeEvent, handleElement, {
autoPanOnConnect: currentStore.autoPanOnConnect,
connectionMode: currentStore.connectionMode,
connectionRadius: currentStore.connectionRadius,