From 502451375d84abfa7d539612154286ee3ced172f Mon Sep 17 00:00:00 2001 From: pushkine Date: Tue, 19 May 2020 20:52:32 +0200 Subject: [PATCH] fix quadInOut --- src/runtime/easing/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/easing/index.ts b/src/runtime/easing/index.ts index 99fb1b0d8f..a87fec3972 100644 --- a/src/runtime/easing/index.ts +++ b/src/runtime/easing/index.ts @@ -1,7 +1,7 @@ export const linear = (t: number) => t; export const quadIn = (t: number) => t ** 2; export const quadOut = (t: number) => 1.0 - (1.0 - t) ** 2; -export const quadInOut = (t: number) => 0.5 * (t >= 0.5 ? 2.0 - 2 * (1.0 - t) ** 2 : (2 * t) ** 2); +export const quadInOut = (t: number) => 0.5 * (t >= 0.5 ? 2.0 - (2 * (1.0 - t)) ** 2 : (2 * t) ** 2); export const cubicIn = (t: number) => t ** 3; export const cubicOut = (t: number) => 1.0 - (1.0 - t) ** 3; export const cubicInOut = (t: number) => 0.5 * (t >= 0.5 ? 2.0 - (2 * (1.0 - t)) ** 3 : (2 * t) ** 3);