Hey guys,
I’m trying to use a LazyColumn to create a fullscreen vertical swipeable image. However, the flingbehavior is waaaay to aggressive and I only want it to snap 1 item at a time.
Is there an easy way i’m missing to adjust the velocity?
Nicolai
11/06/2023, 6:25 PM
Copy code
LazyColumn(
modifier = Modifier.fillMaxSize(),
state = listState,
flingBehavior = rememberSnapFlingBehavior(lazyListState = listState)
) {
items(itemCount) { index ->
content(index)
if (index == itemCount - 1) {
loadMoreItems()
}
}
}