Merge pull request #4519 from xyflow/fix-connection-snapping

Fix connection snapping & update internal easy-connect example
This commit is contained in:
Moritz Klack
2024-08-12 17:19:05 +02:00
committed by GitHub
6 changed files with 31 additions and 23 deletions
+3 -1
View File
@@ -175,7 +175,9 @@ function onPointerDown(
newConnection.toHandle &&
previousConnection.toHandle.type === newConnection.toHandle.type &&
previousConnection.toHandle.nodeId === newConnection.toHandle.nodeId &&
previousConnection.toHandle.id === newConnection.toHandle.id
previousConnection.toHandle.id === newConnection.toHandle.id &&
previousConnection.to.x === newConnection.to.x &&
previousConnection.to.y === newConnection.to.y
) {
return;
}