summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/commands/timeline/element/keyframes
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/lib/commands/timeline/element/keyframes')
-rw-r--r--apps/web/src/lib/commands/timeline/element/keyframes/retime-keyframe.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/web/src/lib/commands/timeline/element/keyframes/retime-keyframe.ts b/apps/web/src/lib/commands/timeline/element/keyframes/retime-keyframe.ts
index 29d95918..5328419f 100644
--- a/apps/web/src/lib/commands/timeline/element/keyframes/retime-keyframe.ts
+++ b/apps/web/src/lib/commands/timeline/element/keyframes/retime-keyframe.ts
@@ -49,6 +49,7 @@ export class RetimeKeyframeCommand extends Command {
}),
update: (element) => {
const boundedTime = Math.max(0, Math.min(this.nextTime, element.duration));
+ if (!Number.isFinite(boundedTime)) return element;
return {
...element,
animations: retimeElementKeyframe({