From 5b285ed6776f82da9610306e1448cb8ff0128451 Mon Sep 17 00:00:00 2001 From: Barnabas Balogh Date: Tue, 17 Feb 2026 20:50:15 +0100 Subject: [PATCH] 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. --- app/src/main/java/hu/bbara/purefin/app/home/ui/HomeSections.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/hu/bbara/purefin/app/home/ui/HomeSections.kt b/app/src/main/java/hu/bbara/purefin/app/home/ui/HomeSections.kt index d686976..8dfd1d5 100644 --- a/app/src/main/java/hu/bbara/purefin/app/home/ui/HomeSections.kt +++ b/app/src/main/java/hu/bbara/purefin/app/home/ui/HomeSections.kt @@ -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,