react-easy-crop icon indicating copy to clipboard operation
react-easy-crop copied to clipboard

Croparea is not restored after zoom

Open gerbensnellenberg opened this issue 1 year ago • 1 comments

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

gerbensnellenberg avatar Jul 12 '24 12:07 gerbensnellenberg

Hi,

The sandbox link is broken apparently.

ValentinH avatar Jul 18 '24 04:07 ValentinH