`LazyListState` supports `scrollToItem()` but `Sca...
# compose-wear
g
LazyListState
supports
scrollToItem()
but
ScalingLazyListState
does not. Is this something that might come in the future, or consciously omitted?
🍿 1
1
y
It's hidden, internal to the SLLS, so hopefully just an API to be defined.
🙂 1
j
We plan to add it in the future - but it's not straight forward. The issue is that LazyColumn on which ScalingLazyColumn is built is anchored to the top of the viewport and this gives us two issues, firstly due to scaling its not always obvious which item is really at the top of the viewport as we have two coordinate systems scaled and unadjusted and secondly we really want to be able to scroll the center of an list item to the center of the viewport. So we are going to work with the Core Compose team to extend the LazyList capabilities to add anchoring at the center f the viewport which will then allow us to scroll/snap items to middle of the viewport.
👍🏻 1