Modify Snapback spring stiffness

According to shade motion doc, UMO Snapback spring stiffness should be low.

Bug: 247810047
Test: Checked the speed of the snapback animation when it's going back to its original position.

Change-Id: I1f7f371c5b180e9ac24beca809e884cafa82796b
This commit is contained in:
Michael Mikhail
2022-10-05 18:52:07 +00:00
parent 2ab63d23d3
commit 532d5652f4

View File

@@ -47,7 +47,7 @@ private const val SETTINGS_BUTTON_TRANSLATION_FRACTION = 0.3f
* were not provided, and a default spring was not set via [PhysicsAnimator.setDefaultSpringConfig].
*/
private val translationConfig = PhysicsAnimator.SpringConfig(
SpringForce.STIFFNESS_MEDIUM,
SpringForce.STIFFNESS_LOW,
SpringForce.DAMPING_RATIO_LOW_BOUNCY)
/**