https://kotlinlang.org logo
#compose
Title
# compose
m

Matija Sokol

02/29/2024, 2:27 PM
What is recommended way to customize
snapVelocityTreshold
in Pager now when method which takes
snapVelocityTreshold
is deprecated? I want to decrease Pager swipe sensitivity.
Copy code
// deprecated - use overload which does not have snapVelocityTreshold as parameter

val flingBehavior = PagerDefaults.flingBehavior(state = pagerState, snapVelocityThreshold = 5.dp)
3 Views