mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3183 Chats | Enhancement | Smoother scrolling when opening chat on unread messages (#2417)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
300709aaa2
commit
945c4865c7
2 changed files with 28 additions and 7 deletions
|
@ -383,7 +383,11 @@ fun ChatScreen(
|
|||
if (index >= 0) {
|
||||
snapshotFlow { lazyListState.layoutInfo.totalItemsCount }
|
||||
.first { it > index }
|
||||
lazyListState.animateScrollToItem(index)
|
||||
if (intent.smooth) {
|
||||
lazyListState.animateScrollToItem(index)
|
||||
} else {
|
||||
lazyListState.scrollToItem(index)
|
||||
}
|
||||
awaitFrame()
|
||||
} else {
|
||||
Timber.d("DROID-2966 COMPOSE Could not find the scrolling target for the intent")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue