-
-
Notifications
You must be signed in to change notification settings - Fork 327
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
Bug: onResize does not respect resizeGrid #901
Comments
jonocodes
changed the title
onResize does not respect resizeGrid
Bug: onResize does not respect resizeGrid
Jan 6, 2023
I've just tested your sample code and noticed that it did respect the resizeGrid but there is another problem which is when I resized it and then released the cursor, it immediately went back to original state. |
Ah, ok, it is |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
If I set a dragGrid, then onDrag callbacks fire only when the mouse takes a step in the grid. This is expected.
If I set a resizeGrid, then onResize callbacks fire every time the mouse moves one pixel - ignoring the grid. This is not expected.
Overview of the problem
I'm using react-rnd version 10.3.3
My browser is: Firefox and Chrome
Reproduced project
https://codesandbox.io/s/modest-wood-ys66zi?file=/src/index.js
Also pasted below.
The text was updated successfully, but these errors were encountered: