Merge pull request #4480 from xyflow/fix-node-extent
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@xyflow/react': minor
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(dragging) nodeExtent breaks dragging nodes in subflows
|
||||||
@@ -276,7 +276,7 @@ const createStore = ({
|
|||||||
const { nodeLookup } = get();
|
const { nodeLookup } = get();
|
||||||
|
|
||||||
for (const [, node] of nodeLookup) {
|
for (const [, node] of nodeLookup) {
|
||||||
const positionAbsolute = clampPosition(node.position, nodeExtent);
|
const positionAbsolute = clampPosition(node.internals.positionAbsolute, nodeExtent);
|
||||||
|
|
||||||
nodeLookup.set(node.id, {
|
nodeLookup.set(node.id, {
|
||||||
...node,
|
...node,
|
||||||
|
|||||||
Reference in New Issue
Block a user