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:
@@ -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)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user