-
Notifications
You must be signed in to change notification settings - Fork 32
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
Disable wheel event #54
Comments
Hi @benben994 , |
This option would be really nice. I need all the features of clipper-fixed but I just want to prevent zooming with the mouse wheel, I tried to capture the wheel event and use preventDefault but it doesnt work. At least it would be nice that the wheel event would emit an event that could be capture in the parent so we could update the range accordingly. My problem is that I use a slider to control the zoom, but i cannot sync it with the mouse wheel nor disable the mouse wheel which would prevent the problem |
New feature in the next versionAdd a prop Example: <clipper-fixed :handle-zoom-event={handleZoomEvent}/> // method
handleZoomEvent: function (scale) {
// fires when bgWH$ is about to change
// normal behavior
return scale;
// disable zoom
return NaN;
} |
@timtnleeProject thank you so much. Awesome plugin! |
v3.0.3 released |
Hi I'm wondering is there any way that I can disable only wheel event for zooming?
I saw the onChange$ subscribe all resize, rotate event.
But I only need to prevent user to use mouse wheel.
Thanks.
The text was updated successfully, but these errors were encountered: