Skip to content
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

Feature request: expose drag event on Cropper #236

Open
mikob opened this issue Apr 9, 2023 · 1 comment
Open

Feature request: expose drag event on Cropper #236

mikob opened this issue Apr 9, 2023 · 1 comment

Comments

@mikob
Copy link

mikob commented Apr 9, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants