Merge pull request #4480 from xyflow/fix-node-extent

This commit is contained in:
Moritz Klack
2024-07-23 09:35:09 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@xyflow/react': minor
---
fix(dragging) nodeExtent breaks dragging nodes in subflows
+1 -1
View File
@@ -276,7 +276,7 @@ const createStore = ({
const { nodeLookup } = get();
for (const [, node] of nodeLookup) {
const positionAbsolute = clampPosition(node.position, nodeExtent);
const positionAbsolute = clampPosition(node.internals.positionAbsolute, nodeExtent);
nodeLookup.set(node.id, {
...node,