-
-
Notifications
You must be signed in to change notification settings - Fork 334
Closed
Labels
Description
Overview of the problem
I'm using react-rnd version [10.4.11]
My browser is: Any browser
I am sure this issue is not a duplicate? YES
Reproduced project
- This is vite based - https://codesandbox.io/p/devbox/easy-peasy-v6-devbox-55sgc7
- This react-scripts based - https://codesandbox.io/p/sandbox/easy-peasy-v6-wr34tl
Description
When the bundler is vite https://vitejs.dev/
- When resizing from other than right and bottom - the element is shaking weirdly
When the bundler is react-scripts https://www.npmjs.com/package/react-scripts
- When resizing from other than right and bottom - the element is not shaking and behaves as expected
Steps to Reproduce
- Resize the pink box in the demo app in vite demo https://codesandbox.io/p/devbox/easy-peasy-v6-devbox-55sgc7
- Resize the pink box in the demo app in react-scripts demo https://codesandbox.io/p/sandbox/easy-peasy-v6-wr34tl
In 1 is wrong, in 2 is correct
Expected behavior
Not to have that shaking effect when resized from left or top even when using vite bundler
Actual behavior
Strange shaking / wobbling when resizing
valerii15298