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

Refactor Scroll widget to have ScrollBar widgets #181

Closed
ecton opened this issue Oct 16, 2024 · 1 comment
Closed

Refactor Scroll widget to have ScrollBar widgets #181

ecton opened this issue Oct 16, 2024 · 1 comment

Comments

@ecton
Copy link
Member

ecton commented Oct 16, 2024

On Discord, a discussion about how interactive widgets overrode the scrollbar events made me re-test how Firefox's automatic hiding scrollbars work. Their bars are always interactive above the content.

Additionally, when thinking about the data grid widget (#178), that widget will need to have scrollbars that behave the same as the Scroll widget.

To make this work, the Scroll widget should be refactored into using individual widgets for its scroll bars. These widgets can be drawn after the contents, and this will ensure that they receive mouse events at a higher priority than the scroll contents.

@ecton
Copy link
Member Author

ecton commented Oct 16, 2024

Additionally the Firefox scrollbars look a bit nicer -- they have a very small amount of padding around the thumb and render an opaque background when visible. They also still show the little triangles, although they're nearly unusable given how small they are.

@ecton ecton closed this as completed in 171cf3f Oct 19, 2024
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