https://kotlinlang.org logo
a

allan.conda

08/25/2022, 11:45 PM
I got feedback that lazycolumn is more sensitive to scroll than recyclerview. Is it deliberate and is there a way to reduce this?
s

shikasd

08/26/2022, 1:08 AM
What do you mean by "more sensitive"? Does it scroll more given the same touch input or smth else?
a

allan.conda

08/26/2022, 2:12 AM
Yes, like it scrolls/flings faster with same force. There’s video evidence too.
i

Ian Lake

08/26/2022, 2:43 AM
That would be a bit odd, given that the fling code was literally directly ported from the View implementation: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]in/kotlin/androidx/compose/animation/SplineBasedDecay.kt;l=69
If you do have video evidence and a reproducible sample project that shows a RecyclerView and LazyColumn scrolling different amounts given the exact same amount of swipe (something that is possible to do in tests), I'd file a bug against Compose's Animation component to have them take a look: https://issuetracker.google.com/issues/new?component=1070767
a

Amane Nikaido

09/05/2022, 7:57 AM
I’ve created an issue for that. Please take a look. https://issuetracker.google.com/issues/245018255
3 Views