Skip to content

Commit

Permalink
[Button] Updated spring damping and stiffness for MaterialButton.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 661324416
  • Loading branch information
pekingme authored and drchen committed Aug 12, 2024
1 parent bedc6bd commit cfef899
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ interface OnPressedChangeListener {

private static final int DEF_STYLE_RES = R.style.Widget_MaterialComponents_Button;

private static final float DEFAULT_BUTTON_CORNER_SPRING_DAMPING = 0.8f;
private static final float DEFAULT_BUTTON_SPRING_STIFFNESS = 380;
// Use Fast Bouncy spring as default.
private static final float DEFAULT_BUTTON_CORNER_SPRING_DAMPING = 0.6f;
private static final float DEFAULT_BUTTON_SPRING_STIFFNESS = 800;

@NonNull private final MaterialButtonHelper materialButtonHelper;

Expand Down

0 comments on commit cfef899

Please sign in to comment.