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

Prevent image/video from leaving the crop area on mouse interaction #1

Open
sabine opened this issue Oct 17, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@sabine
Copy link
Owner

sabine commented Oct 17, 2022

The main justification for the snap-back animation is to make the touch gesture rotate, scale, and pan feel natural.

However, on mouse interaction it probably makes more sense to prevent people from rotating/scaling/panning the image/video out of the crop area. Or to at least give people using the component the choice whether they want the gesture to be constrained, or to have the snap-back effect. 🤔

@sabine sabine added the enhancement New feature or request label Oct 17, 2022
@sabine sabine changed the title Have the image/video stop at the border on mouse interaction Prevent image/video from leaving the crop area on mouse interaction Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant