From 463a8dd77899cde1a2c542c6c90d0c7614285f16 Mon Sep 17 00:00:00 2001 From: Simon Brunel Date: Sat, 8 Jul 2017 15:38:40 +0200 Subject: [PATCH] Simplify formulas based on code review --- src/helpers/helpers.easing.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/helpers/helpers.easing.js b/src/helpers/helpers.easing.js index 975cc928838..23ca6fff080 100644 --- a/src/helpers/helpers.easing.js +++ b/src/helpers/helpers.easing.js @@ -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 { @@ -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 { @@ -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 {