refactor(handle): first check element below then connection radius

This commit is contained in:
moklick
2023-01-30 11:39:19 +01:00
parent 079e380a31
commit 75a13e87bc
11 changed files with 348 additions and 19 deletions
@@ -125,6 +125,7 @@ export function handlePointerDown({
}
const { connection, handleDomNode, isValid } = isValidHandle(
event,
prevClosestHandle,
connectionMode,
nodeId,
@@ -148,6 +149,7 @@ export function handlePointerDown({
if (prevClosestHandle) {
const { connection, isValid } = isValidHandle(
event,
prevClosestHandle,
connectionMode,
nodeId,