Skip to content

Commit 010d9de

Browse files
committed
Enable rubber banding in FlickToDismiss() by default
1 parent 9893d17 commit 010d9de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flick/src/commonMain/kotlin/me/saket/telephoto/flick/FlickToDismissState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import kotlin.time.Duration
2222
fun rememberFlickToDismissState(
2323
dismissThresholdRatio: Float = 0.2f,
2424
rotateOnDrag: Boolean = true,
25-
rubberBandingSpec: RubberBandingSpec = RubberBandingSpec.Disabled,
25+
rubberBandingSpec: RubberBandingSpec = RubberBandingSpec(resistanceFactor = 2f),
2626
): FlickToDismissState {
2727
check(dismissThresholdRatio > 0f) {
2828
"The dismiss threshold ratio must be a non-zero value."

0 commit comments

Comments
 (0)