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 committed May 29, 2018
1 parent 57e7556 commit 7b666a2
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 @@ -175,10 +175,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 7b666a2

Please sign in to comment.