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

Resizing crop from corners makes cropped area moves outside the cropping container area #554

Closed
ochurae opened this issue Aug 31, 2023 · 4 comments

Comments

@ochurae
Copy link

ochurae commented Aug 31, 2023

NOTE: Such behaviour appears only when minWidth/minHeight props defined.

Here is an example:
Screen recording

React: v18.2.0
react-image-crop: v10.1.5

dominictobias added a commit that referenced this issue Aug 31, 2023
* fix(#554): crop flipping out of bounds

* tweak comment
@dominictobias
Copy link
Owner

dominictobias commented Aug 31, 2023

Thanks for reporting this and the helpful .gif, please try 10.1.6

@dominictobias
Copy link
Owner

FYI I've introduced an issue when only minWidth or minHeight are set which I'll fix in next patch

@dominictobias
Copy link
Owner

dominictobias commented Aug 31, 2023

Fix publish to 10.1.8

@ochurae
Copy link
Author

ochurae commented Sep 1, 2023

Nice, now works perfectly. Thank you for such a fast fix :)

@ochurae ochurae closed this as completed Sep 1, 2023
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

2 participants