How can scroll position be seamlessly maintained o...
# compose
s
How can scroll position be seamlessly maintained on a
LazyColumn
when items get added dynamically to the top? Currently we detect when new stuff will be added to
items
, and capture the current
LazyListState.layoutInfo.totalItemsCount
,
firstVisibleItemIndex
, and
firstVisibleItemScrollOffset
so that we can calculate how to reorient. This technique does get back to the right position, but there’s an obvious visual jank/jitter in the process. Is there a better technique that can avoid this disruption?