Is there any way for fast scroll for `LazyLazyStat...
# compose
s
Is there any way for fast scroll for
LazyLazyState
?
animateScrollToItem
for long distance scroll, it animates all the way to the index, which takes too long time. Need to animate the scroll at initial, teleport to some nearest index and animate from there to the index.
s
You can just
scrollToItem(targetIndex - k); animateScrollToItem(targetIndex)
s
For a simple layout it would make sense. But I have a 2 lazy lists with synchronised scroll. I’ll be listening the scroll end too, which are inter-dependent. Then the scroll goes endless to and fro.
e
I’m genuinely curious what sort of apps need dual scroll-synchronized lists? Apart from diff viewers, I cannot think of something else
s
Calendar app, day view.
👍🏾 1