mirror of
https://github.com/bbara04/Purefin.git
synced 2026-03-31 17:10:08 +02:00
fix: prevent ContinueWatching LazyRow from starting scrolled to middle
Removing the item key disables Compose's scroll anchoring, which was shifting the scroll offset rightward whenever a refresh prepended new items, making the list appear to start in the middle.
This commit is contained in:
@@ -63,8 +63,7 @@ fun ContinueWatchingSection(
|
||||
contentPadding = PaddingValues(horizontal = 16.dp),
|
||||
horizontalArrangement = Arrangement.spacedBy(16.dp)
|
||||
) {
|
||||
items(
|
||||
items = items, key = { it.id }) { item ->
|
||||
items(items = items) { item ->
|
||||
ContinueWatchingCard(
|
||||
item = item,
|
||||
onMovieSelected = onMovieSelected,
|
||||
|
||||
Reference in New Issue
Block a user