summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/animation/curve-bridge.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/lib/animation/curve-bridge.ts')
-rw-r--r--apps/web/src/lib/animation/curve-bridge.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/web/src/lib/animation/curve-bridge.ts b/apps/web/src/lib/animation/curve-bridge.ts
index 55f96933..12103c3f 100644
--- a/apps/web/src/lib/animation/curve-bridge.ts
+++ b/apps/web/src/lib/animation/curve-bridge.ts
@@ -1,4 +1,3 @@
-import { TIME_EPSILON_SECONDS } from "@/constants/animation-constants";
import {
getDefaultLeftHandle,
getDefaultRightHandle,
@@ -25,7 +24,7 @@ export function getNormalizedCubicBezierForScalarSegment({
const spanTime = rightKey.time - leftKey.time;
const spanValue = rightKey.value - leftKey.value;
if (
- Math.abs(spanTime) <= TIME_EPSILON_SECONDS ||
+ spanTime === 0 ||
Math.abs(spanValue) <= VALUE_EPSILON
) {
return null;
@@ -59,7 +58,7 @@ export function getCurveHandlesForNormalizedCubicBezier({
const spanTime = rightKey.time - leftKey.time;
const spanValue = rightKey.value - leftKey.value;
if (
- Math.abs(spanTime) <= TIME_EPSILON_SECONDS ||
+ spanTime === 0 ||
Math.abs(spanValue) <= VALUE_EPSILON
) {
return null;