diff --git a/Sources/PlaydateKit/Core/Easing.swift b/Sources/PlaydateKit/Core/Easing.swift index 8d8ce85..c1b042f 100644 --- a/Sources/PlaydateKit/Core/Easing.swift +++ b/Sources/PlaydateKit/Core/Easing.swift @@ -75,7 +75,7 @@ public enum Easing { case .outExpo: return x == 1 ? 1 : 1 - powf(2, -10 * x) case .inOutExpo: - return x == 0 ? 0 : x == 1 ? 1 : x < 0.5 ? powf(2, 20 * x - 10) / 2 : 2 - powf(2, -20 * x + 10) / 2 + return x == 0 ? 0 : x == 1 ? 1 : x < 0.5 ? powf(2, 20 * x - 10) / 2 : (2 - powf(2, -20 * x + 10)) / 2 case .inCirc: return 1 - sqrtf(1 - powf(x, 2)) case .outCirc: