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

Croparea is not restored after zoom #547

Open
gerbensnellenberg opened this issue Jul 12, 2024 · 1 comment
Open

Croparea is not restored after zoom #547

gerbensnellenberg opened this issue Jul 12, 2024 · 1 comment

Comments

@gerbensnellenberg
Copy link

Describe the bug
I use the cropper with a container that has the same size as the cropper, both width as heigth.
When rotating an image, the croparea will resize to the dimensions of the rotated image (smaller). The croparea does not return to it's initial size, for example when zooming in.

To Reproduce

  1. Rotate (2nd scroller) the image 90deg, the croparea will become smaller
  2. Zoom in (1st scroller)

Expected behavior
I would like to see that the croparea would expand to the size of the container if you zoom in on the rotated image. This could also be achieved when you have the possibilty to change the size of the cropArea.

https://codesandbox.io/p/sandbox/sharp-archimedes-32pzkk

@ValentinH
Copy link
Owner

Hi,

The sandbox link is broken apparently.

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