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

[NOT a bug] How to disable image zooming on scroll? #158

Closed
roenfeldt opened this issue Oct 20, 2021 · 3 comments
Closed

[NOT a bug] How to disable image zooming on scroll? #158

roenfeldt opened this issue Oct 20, 2021 · 3 comments

Comments

@roenfeldt
Copy link

As the issue's title says - I need to disable the image zooming that happens during the scroll event.

My users find it a bit confusing, that when they are scrolling the page, if the mouse cursor happens to be over the Cropper instance, the image will get zoomed in/out. And therefore I would need the Cropper to stop listening (or at least reacting) to the scroll event. Here's a video where I'm trying to demonstrate what's happening. Using the default "minimal example" on the docs page https://norserium.github.io/vue-advanced-cropper/introduction/getting-started.html#minimal-working-example

zoom-Screen.Recording.2021-10-20.at.13.27.17.mov

Thank you :)

@Norserium
Copy link
Collaborator

Norserium commented Oct 20, 2021

@roenfeldt, it's easy to solve:

<cropper
    :src="src"
    :resizeImage="{ wheel: false }"
/>

https://norserium.github.io/vue-advanced-cropper/components/cropper.html#resizeimage

@roenfeldt
Copy link
Author

Outstanding! Best support ever! 🤩

@Norserium
Copy link
Collaborator

@roenfeldt, you are welcome!

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