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),
|
contentPadding = PaddingValues(horizontal = 16.dp),
|
||||||
horizontalArrangement = Arrangement.spacedBy(16.dp)
|
horizontalArrangement = Arrangement.spacedBy(16.dp)
|
||||||
) {
|
) {
|
||||||
items(
|
items(items = items) { item ->
|
||||||
items = items, key = { it.id }) { item ->
|
|
||||||
ContinueWatchingCard(
|
ContinueWatchingCard(
|
||||||
item = item,
|
item = item,
|
||||||
onMovieSelected = onMovieSelected,
|
onMovieSelected = onMovieSelected,
|
||||||
|
|||||||
Reference in New Issue
Block a user