advanced-cropper / vue-advanced-cropper

The advanced vue cropper library that gives you opportunity to create your own croppers suited for any website design
https://advanced-cropper.github.io/vue-advanced-cropper/
Other
930 stars 128 forks source link

Feature request: expose drag event on Cropper #236

Open mikob opened 1 year ago

mikob commented 1 year ago

It looks like one of the child components already emits a drag event but it doesn't propagate up to the ancestor Cropper instance. My use case is I've drawn buttons in the crop area that let the user quickly adjust the stencil to that location (e.g. over a face). But I cannot distinguish between when the user is clicking vs. dragging (mousedown is eaten by cropper) and so if the user drags an edge while over a button area, I don't know whether it was a click or a drag.

dword-design commented 7 months ago

I also need this to conditionally disable clicking the backdrop of a modal depending on if the user is dragging the cropper.