-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[jvm] HorizontalPager can't have snap scroll #3849
Comments
Have you tried Shift + Scroll? I believe this is a default way to perform horizontal scroll on desktop |
+1 on windows,
but it can't be simply dragged by mouse click + drag... |
Fair enough, it can be easily circumvented even tho the nowadays use cases all revolve around inverted behaviour where everything now matches touchscreens :p (interestingly, it reminds me I didn't check using a laptop with touchscreens)
this is problematic as the whole purpose of a "pager" is to actually introduce said snap scroll. Otherwise, this is simply a lazy horizontal list |
Now it's a duplicate of #3447 |
Awesome, I'll update this one then. Almost finished to work onto something which may be (hopefully) cleaner than using a LaunchedEffect (keeping this one opened for now) |
Thanks to @alexzhirkevich |
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
edit : changed the title to be more explicit about the issue which makes more sense on desktops
Describe the bug
Scrolling using the trackpad won't pan on entire page : stopping mid "scroll" will keep the pages in a weird state where it doesn't magnet to the new "currentPage"
edit : removing this part : Using the HorizontalPager on jvm artifact will have this weird behaviour that no drag interaction can change pages. On Mac for instance, only either switching pages programmatically or scrolling on the trackpad will work. Shouldn't a mouse drag be working just like on mobile platforms ?
Affected platforms
Select one of the platforms below:
Versions
To Reproduce
Steps and/or the code snippet to reproduce the behavior:
Expected behavior
When scrolling using the trackpad, it should land to "full" currentPage instead of just be in a weird interstate
edit : removed It should be possible to scroll just on the other mobile platforms.
Additional context
I took a quick snippet from another issue just to check if it wasn't my implementation which was introducing such issues and could reproduce the issue right away
The text was updated successfully, but these errors were encountered: