-
Notifications
You must be signed in to change notification settings - Fork 3.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
[Bug]: Scrollbar is hardly stable #1526
Comments
Interesting, is it only present on large screen devices, or also on regular phone width? |
@SimonMarquis |
I think it happens due to there is one spacer at the end of stagger list. Line 200 in 50b13ec
Since ScrollBar (thumb position and thumb size) is calculated based on first visible items and percentage of visible items, not by real position, and all other items are long layout, it causes miscalculating when you scroll to end of the list. Line 204 in 50b13ec
|
Hi @anhtuannd , @Jaehwa-Noh , @SimonMarquis , Since, I think it is weird the There is still one improvement to be done (but I think it is another issue, may I open a new one, or you guys prefer to be handled on this one?). @anhtuannd , about the improvement that I've done on the PR: #1550, actually this fix, that I've done, it makes sense to use the safeguard of not using the items out of the viewport for the types: |
Hi @anhtuannd , @Jaehwa-Noh , @SimonMarquis ,
@anhtuannd , this one also, did not require to separate the function: On my tests, it looks pretty smooth now. Thanks. |
Hi @anhtuannd , @Jaehwa-Noh , @SimonMarquis, |
ill try to fix this scroll issue. |
The scrollbar also jumps on a simple LazyList when a long tap is happening within the thumb. The reason seems that the position of the gesture is translated into the new top position of the thumb. Attached is a video of a preview composable using the scrollbar with draggable thumb. In second 3, I am long tapping toward the bottom edge of the thumb. |
Is there an existing issue for this?
Is there a StackOverflow question about this issue?
What happened?
Scrollbar is hardly stable.
When I drag down and drag up, you can see the scrollbar position jump other place.
Screen_recording_20240703_165416.webm
2024-07-03.5.00.07.mov
Relevant logcat output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: