React Flow | Svelte Flow - Powerful open source libraries for building node-based UIs with React (https://reactflow.dev) or Svelte (https://svelteflow.dev). Ready out-of-the-box and infinitely customizable.
With 3 nested nodes, when moving the highest-level one, the result of getIntersectingNodes is not correct (if the position of the nodes is different from (0,0)).
I think the problem comes from evaluateAbsolutePosition, where we shouldn't be summing up the positionAbsolute of all the parents, but rather the position
Steps to reproduce the bug or issue
Create 3 nested nodes
Try to use getIntersectingNodes on the last child
The result is not correct
Expected behavior
getIntersectingNodes should evaluate intersecting nodes correctly, whatever the depth of the nodes
What platform were you using when you found the bug?
Live code example
https://codesandbox.io/p/devbox/musing-microservice-sfcpd5
Describe the Bug
With 3 nested nodes, when moving the highest-level one, the result of
getIntersectingNodes
is not correct (if the position of the nodes is different from (0,0)). I think the problem comes from evaluateAbsolutePosition, where we shouldn't be summing up thepositionAbsolute
of all the parents, but rather theposition
Steps to reproduce the bug or issue
getIntersectingNodes
on the last childExpected behavior
getIntersectingNodes
should evaluate intersecting nodes correctly, whatever the depth of the nodesScreenshots or Videos
Additional context
No response