Skip to content

Commit

Permalink
Simplify formulas based on code review
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrunel authored and etimberg committed Jul 8, 2017
1 parent 56050dc commit 463a8dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/helpers/helpers.easing.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ var effects = {
return 1;
}
if (!p) {
p = 1 * 0.3;
p = 0.3;
}
if (a < Math.abs(1)) {
if (a < 1) {
a = 1;
s = p / 4;
} else {
Expand All @@ -153,9 +153,9 @@ var effects = {
return 1;
}
if (!p) {
p = 1 * 0.3;
p = 0.3;
}
if (a < Math.abs(1)) {
if (a < 1) {
a = 1;
s = p / 4;
} else {
Expand All @@ -175,9 +175,9 @@ var effects = {
return 1;
}
if (!p) {
p = 0.3 * 1.5;
p = 0.45;
}
if (a < Math.abs(1)) {
if (a < 1) {
a = 1;
s = p / 4;
} else {
Expand Down

0 comments on commit 463a8dd

Please sign in to comment.