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

Scroll behavior issues #197

Open
monodop opened this issue Jan 14, 2025 · 0 comments
Open

Scroll behavior issues #197

monodop opened this issue Jan 14, 2025 · 0 comments

Comments

@monodop
Copy link
Contributor

monodop commented Jan 14, 2025

I originally wanted to report a weird interaction between floating elements and scrolling elements underneath, but I think overall drag scrolling is a bit weird at the moment, because:

  • floating elements with pointer capture does not affect obscured scrollable elements below

scrollbug1

  • it does not matter where you started your click, scrolling works on all scrollable elements as long as the mouse button is held down. I don't have a touchscreen to test on, but I think it this would be especially problematic in that environment.

scrollbug2

  • if you drag past the scrollable area, the offset from your original starting point will change

scrollbug3

  • drag scrolling doesn't seem to very accurately follow the cursor (this example also shows awkward behavior with nested scroll areas)

scrollbug4

In my opinion, drag scrolling should probably track which element was clicked during the start of the scroll, and the coordinates of that interaction, in order to determine where the scroll position should be.

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