React flow renderer and moveable element position and scale not staying the same

Viewed 24

Hi I'm facing some difficulties utilizing react-moveable with react-flow-renderer to make my elements both movable and scalable.

At my current place, I am able to scale and rotate elements but after this when I try to move them the scaling and rotation reverts and they move to a different x and y position instead of staying where the user scaled them to.

Additionally the scaling of the outer container elements reverts when you move the element as well. Here's a link to my codesandbox for reference.

If anybody could help I'd really appreciate it.

https://codesandbox.io/s/sandpack-project-forked-y4o4h1?file=/App.js Thank you!

0 Answers
Related