-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
objectFit="cover" prevents to zoom out #566
Comments
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 by default. |
This is after I selected the image: video.mov |
The thing is that See this quick example: https://codesandbox.io/p/sandbox/react-easy-crop-custom-image-demo-forked-cghhr6 |
Describe the bug
When I use
objectFit="cover"
together withaspect={1} cropShape="round"
I can't zoom the image to fit the crop area. The crop area is always smaller than the possible max crop area available:In that screenshot my image is a square image. And you can see that there is still a lot of space left to zoom in. But you can't:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect to zoom in on the image so that it fully covers the crop area.
https://codesandbox.io/p/sandbox/react-easy-crop-custom-image-demo-forked-lgqh52?file=%2Fsrc%2Findex.js%3A81%2C15&workspaceId=bc8b6897-580d-458a-9b3c-d003c96a2633
The text was updated successfully, but these errors were encountered: