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

Do not hide scrollbar if the mouse is being dragged and not yet released. #684

Merged
merged 3 commits into from Apr 5, 2024

Conversation

thomasdao
Copy link
Contributor

Hi,

Thanks for the library - it's really useful especially when Chrome removes support for overflow: overlay.

Currently, whenever scrolling ends, the scrollbar is hidden. However, when the user is dragging the scrollbar and has not yet released the mouse, it is better to keep the scrollbar visible so the user can continue dragging - it is more consistent with how the scrollbar works on MacOS.

This PR adds a simple check if the user still drags the scrollbar before hiding it.

@Grsmto Grsmto merged commit e20b0f3 into Grsmto:master Apr 5, 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

Successfully merging this pull request may close these issues.

None yet

2 participants