summaryrefslogtreecommitdiff
path: root/apps/web/src/timeline/animation-snap-points.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/timeline/animation-snap-points.ts')
-rw-r--r--apps/web/src/timeline/animation-snap-points.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/web/src/timeline/animation-snap-points.ts b/apps/web/src/timeline/animation-snap-points.ts
index f7bf549a..e64de11f 100644
--- a/apps/web/src/timeline/animation-snap-points.ts
+++ b/apps/web/src/timeline/animation-snap-points.ts
@@ -1,6 +1,7 @@
import { getElementKeyframes } from "@/animation";
import type { SceneTracks } from "@/timeline";
import type { SnapPoint } from "@/timeline/snapping";
+import { addMediaTime } from "@/wasm";
export function getAnimationKeyframeSnapPointsForTimeline({
tracks,
@@ -22,7 +23,7 @@ export function getAnimationKeyframeSnapPointsForTimeline({
animations: element.animations,
})) {
snapPoints.push({
- time: element.startTime + keyframe.time,
+ time: addMediaTime({ a: element.startTime, b: keyframe.time }),
type: "keyframe",
elementId: element.id,
trackId: track.id,