-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
How to deactivate action of (mouse) scroll wheel (go to next slide)? #340
Comments
Transferred from Marp Core
I don't have Magic Mouse so can't test actual behavior, but all of swipe gestures should fire events as by mouse wheel because JavaScript cannot detect what kind of device for navigation. Marp CLI's bespoke template has already included a special handling for mouse wheel event(s): A basic handling to prevent continuous events by momentum scroll (triggered by Magic Trackpad and also maybe Magic Mouse). marp-cli/src/templates/bespoke/navigation.ts Lines 58 to 69 in fce5101
But not yet handled high sensitivity against the fine movement of the finger on Magic Mouse. I think we can get both of responsive and not too sensitive navigation by tuning wheel events in some approaches: Setting delta threshold for starting navigation, and throttling continously brought wheel events. We want to hear more feedbacks from Magic Mouse user. |
Thanks @yhatt. OK, maybe indeed a reduction in sensitivity adapted to the Magic Mouse could be an option. Right now, I really have a problem that my slides often go 3-4 steps backward without any intent. If not, then the possibility (if easy to implement) to deactivate this in the configuration of Marp-CLI/Marp-vscode would work for me as well. |
Personally I have interested how other Web-based presentation tools such as Google Slides are resolving Magic Mouse problem. If navigation worked comfortable in them, Marp should be better to apply improvement in similar way too. In the meantime, you can use this workaround:
Now any wheel events have prevented. |
Marp CLI v1.1.0 has released with tuned wheel sensitivity against Multi-touch devices like the trackpad and Magic Mouse. I hope it is reduced too sensitive navigations with Apple Mouse. Even if not satisfied with the updated behavior, the workaround in above will work continously.
|
I love Marp, but when I'm presenting, using an Apple Mouse, the scroll wheel gets very often moved without my intent and then it makes the slideshow move to the next/previous slide(s)/event(s) very fast.
The text was updated successfully, but these errors were encountered: