Mawi137 / ngx-image-cropper

An image cropper for Angular
MIT License
775 stars 207 forks source link

move image into zone crop #626

Open memory660 opened 5 months ago

memory660 commented 5 months ago

the normal operation is that when the cursor is inside the crop zone I move the crop zone.

what I would like is for the image to move.

If this is not possible directly, is it possible to ensure that we click on a button so that the cropper goes into image movement mode? (with hand as cursor)

Mawi137 commented 3 months ago

If I'm not mistaken you can set allowMoveImage to true as well as hideResizeSquares. You should also set a static width and height for the cropper for it to be fixed. I'm not sure whether it will then still track mouse events on the cropper, if it still does, you can add some css on the cropper: pointer-events: none.