Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong size when resizing diagonally with lockAspectRatio #222

Open
1 of 3 tasks
catherine-dubovik opened this issue May 26, 2023 · 2 comments
Open
1 of 3 tasks

Wrong size when resizing diagonally with lockAspectRatio #222

catherine-dubovik opened this issue May 26, 2023 · 2 comments

Comments

@catherine-dubovik
Copy link

Thanks for opening an issue!

Please select the type of issue you're reporting. For questions.

  • Bug
  • Feature Request
  • Question

Problem Report

If lockAspectRatio option is set to true and you resize ResizableBox/Resizable diagonally, the size is wrong, the content is resized way faster than the mouse cursor moves. The issue is cumulative and is more noticeable while resizing a large ResizableBox/Resizable to a smaller one or vice versa.
It can be reproduced on version 3.0.0 and higher (see attached video resizable-3.0.4), but on version 2.0.0 and lower everything is ok (see attached video resizable-2.0.0) .

System Info

Node Version: v16.16.0
Browser: Google Chrome 113.0.5672.127
OS: Windows 10

Reproduction

https://codesandbox.io/s/long-https-uoun8f?file=/src/ResizableBox.js

resizable-3.0.4.mp4
resizable-2.0.0.mp4
@reggiolee
Copy link

I try to print the aspect radio and that are always is value 2~

@Arnau-Gelonch
Copy link

Has anyone found a solution to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants