1 parent 9893d17 commit 010d9deCopy full SHA for 010d9de
1 file changed
flick/src/commonMain/kotlin/me/saket/telephoto/flick/FlickToDismissState.kt
@@ -22,7 +22,7 @@ import kotlin.time.Duration
22
fun rememberFlickToDismissState(
23
dismissThresholdRatio: Float = 0.2f,
24
rotateOnDrag: Boolean = true,
25
- rubberBandingSpec: RubberBandingSpec = RubberBandingSpec.Disabled,
+ rubberBandingSpec: RubberBandingSpec = RubberBandingSpec(resistanceFactor = 2f),
26
): FlickToDismissState {
27
check(dismissThresholdRatio > 0f) {
28
"The dismiss threshold ratio must be a non-zero value."
0 commit comments