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

Mouse wheel and trackpad scroll #9

Open
eligolding opened this issue Jul 7, 2023 · 0 comments
Open

Mouse wheel and trackpad scroll #9

eligolding opened this issue Jul 7, 2023 · 0 comments

Comments

@eligolding
Copy link
Owner

Add support for scrolling up when you hit the up arrow. Make sure you can’t scroll past the top of the page. It’s harder to stop scrolling past the bottom of the page; we will implement this in Chapter 5 Then bind the event, which triggers when you scroll with the mouse wheel.It will also trigger with touchpad gestures, if you don’t have a mouse. The associated event object has an event.delta value which tells you how far and in what direction to scroll. Unfortunately, Mac and Windows give the event.delta objects opposite sign and different scales, and on Linux, scrolling instead uses the and events. (The Tk manual has more information about this. It’s not easy to write cross-platform applications!)

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

1 participant