This repository was archived by the owner on Dec 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
constraintlayout/compose/src
androidTest/java/androidx/constraintlayout/compose
main/java/androidx/constraintlayout/compose Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ private fun OnSwipeTestDsl() {
195
195
anchor = box,
196
196
direction = SwipeDirection .End ,
197
197
side = SwipeSide .End ,
198
- mode = SwipeMode .Spring (springThreshold = 0.0001f ),
198
+ mode = SwipeMode .Spring (threshold = 0.0001f ),
199
199
onTouchUp = SwipeTouchUp .NeverCompleteStart ,
200
200
)
201
201
}
Original file line number Diff line number Diff line change @@ -422,19 +422,19 @@ class SwipeMode internal constructor(
422
422
)
423
423
424
424
fun Spring (
425
- springMass : Float = 1f,
426
- springStiffness : Float = 400f,
427
- springDamping : Float = 10f,
428
- springThreshold : Float = 0.01f,
429
- springBoundary : SpringBoundary = SpringBoundary .Overshoot
425
+ mass : Float = 1f,
426
+ stiffness : Float = 400f,
427
+ damping : Float = 10f,
428
+ threshold : Float = 0.01f,
429
+ boundary : SpringBoundary = SpringBoundary .Overshoot
430
430
): SwipeMode =
431
431
SwipeMode (
432
432
name = " spring" ,
433
- springMass = springMass ,
434
- springStiffness = springStiffness ,
435
- springDamping = springDamping ,
436
- springThreshold = springThreshold ,
437
- springBoundary = springBoundary
433
+ springMass = mass ,
434
+ springStiffness = stiffness ,
435
+ springDamping = damping ,
436
+ springThreshold = threshold ,
437
+ springBoundary = boundary
438
438
)
439
439
}
440
440
}
You can’t perform that action at this time.
0 commit comments