Skip to content

Ability to requery scrollbar width#264

Open
alexgreenland wants to merge 1 commit intomalte-wessel:masterfrom
alexgreenland:feature/devices-changed
Open

Ability to requery scrollbar width#264
alexgreenland wants to merge 1 commit intomalte-wessel:masterfrom
alexgreenland:feature/devices-changed

Conversation

@alexgreenland
Copy link
Copy Markdown

Noticed a bug when switching from a scrollwheel mouse to an Apple Magic Trackpad/Mouse. You can see the bug on the demo page. The width doesn't update to take into account the new scrollbar. The code right now expects the scrollbar width not to change, it caches it forever. As I'm sure you know, with scrollwheel mice on macOS, the scrollbar is always present; with Apple pointer devices, only the thumb is visible when scrolling.

This adds a function which will invalidate the scrollbar width cache and requery scrollbar width on next render. Right now, it is external to detect a device change and call this function.

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

Successfully merging this pull request may close these issues.

1 participant