Skip to content

Commit

Permalink
minor issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vsnappy1 committed May 23, 2023
1 parent 9702a97 commit ef814fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fun SwipeLazyColumn(

// Update selected item index
LaunchedEffect(key1 = listState.firstVisibleItemScrollOffset) {
if (!isAutoScrolling && isManualScrolling) {
if (!isAutoScrolling && isManualScrolling && isInitialWaitOver) {
val index =
listState.firstVisibleItemIndex + if (listState.firstVisibleItemScrollOffset > height.value / numberOfRowsDisplayed) 1 else 0
onSelectedIndexChange(index)
Expand Down

0 comments on commit ef814fa

Please sign in to comment.