Skip to content
Discussion options

You must be logged in to vote

The mouse move events is handled in the on_mouse_move handler, which gets the mouse coordinates. That ultimately calls Widget._scroll_to which modifies scroll_x and scroll_y. Those have watch methods which adjust the position attribute of the scrollbars.

You may be right about action_released! Looks like that functionality is handled in on_mouse_up

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@TomJGooding
Comment options

TomJGooding Jun 12, 2023
Collaborator Author

@willmcgugan
Comment options

@TomJGooding
Comment options

TomJGooding Jun 13, 2023
Collaborator Author

@willmcgugan
Comment options

Answer selected by TomJGooding
@TomJGooding
Comment options

TomJGooding Jun 17, 2023
Collaborator Author

@TomJGooding
Comment options

TomJGooding Jun 18, 2023
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants