cropperjs
cropperjs copied to clipboard
`movable` & `resizable` don't work well with `aspect-ratio` (v2)
Describe the bug
I'm trying to use <cropper-selection
with a specific aspect-ratio
and the movable
& resizable
attributes.
When I try to resize the selection, the selection moves as well.
To Reproduce Steps to reproduce the behavior:
- Go to https://codesandbox.io/s/cocky-chihiro-65esxr?file=/index.html
- Start dragging one of the edges
- You can see the selection resizing but it also moves the selection
Expected behavior I should be able to resize the selection without moving the selection
Screenshots https://codesandbox.io/s/cocky-chihiro-65esxr?file=/index.html
Desktop (please complete the following information):
- OS: MacOS
- Browser: Edge
- Version: 102.0.1245.44
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.