cropperjs icon indicating copy to clipboard operation
cropperjs copied to clipboard

`movable` & `resizable` don't work well with `aspect-ratio` (v2)

Open DavidRouyer opened this issue 2 years ago • 0 comments

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:

  1. Go to https://codesandbox.io/s/cocky-chihiro-65esxr?file=/index.html
  2. Start dragging one of the edges
  3. 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.

DavidRouyer avatar Jun 22 '22 08:06 DavidRouyer