Valentin Hervieu
Valentin Hervieu
What about the crash on your app, not on codesandbox?
It seems that the app crashes when the crop button is clicked. It means that the issue isn't happening in the lib code but in the cropping function.
Thanks for catching that. Then it means that 5.0.4 brought the issue. Are you using the objectFit property?
So it doesn't crash on 5.0.2? What I don't get is that 5.0.3 only added changes to the README 🤔
I confirm that, at the first look, nothing looks suspicious in your code. I'll try to reproduce when I'm back on my computer.
What version of iOS are you testing on? I'm testing on iOS 17.5 and didn't managed to reproduce with the sandbox you shared 🤔  Do you manage to reproduce...
> What seems most strange to me and could provide a clue is that in this URL [codesandbox.io/p/sandbox/react-easy-crop-v69ly910ql](https://codesandbox.io/p/sandbox/react-easy-crop-v69ly910ql) the problem occurs, but in this one [codesandbox.io/s/v69ly910ql](https://codesandbox.io/s/v69ly910ql) it does not. These...
> After a thousand tests, the error occurs when having a tracking provider like Clarity or Hotjar; when initializing the crop or moving the image, the site crashes. I imagine...
Do you expect to zoom in or out? The thing is that zooming out would lead to empty spaces at the top and bottom of the image..the library prevents that...
The thing is that `zoom: 1` means that the image covers its container. If your cropped area is squared then it's better to have the container to be a square...