Skip to content

Commit

Permalink
Set default value for back overshoot
Browse files Browse the repository at this point in the history
  • Loading branch information
akupila authored Mar 1, 2018
1 parent 8a7f68e commit e35c9e8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Libraries/Animated/src/Easing.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,7 @@ class Easing {
*
* - http://tiny.cc/back_default (s = 1.70158, default)
*/
static back(s: number): (t: number) => number {
if (s === undefined) {
s = 1.70158;
}
static back(s: number = 1.70158): (t: number) => number {
return (t) => t * t * ((s + 1) * t - s);
}

Expand Down

0 comments on commit e35c9e8

Please sign in to comment.