Skip to content

When using vite and resizing from other than right and bottom - the element is shaking weirdly #945

@iongion

Description

@iongion

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

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

  1. Resize the pink box in the demo app in vite demo https://codesandbox.io/p/devbox/easy-peasy-v6-devbox-55sgc7
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions