From eea6d43c82e1fd09d94d73001090dad205b1f1d2 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sun, 26 Apr 2026 02:50:04 +0200 Subject: fix: model editor time as wasm MediaTime ticks end-to-end --- .../editor/panels/properties/hooks/use-keyframed-number-property.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/web/src/components/editor/panels/properties/hooks/use-keyframed-number-property.ts') diff --git a/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-number-property.ts b/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-number-property.ts index 9dd39768..d52f7d97 100644 --- a/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-number-property.ts +++ b/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-number-property.ts @@ -8,6 +8,7 @@ import type { AnimationPropertyPath, ElementAnimations } from "@/animation/types import type { TimelineElement } from "@/timeline"; import { snapToStep } from "@/utils/math"; import { usePropertyDraft } from "./use-property-draft"; +import type { MediaTime } from "@/wasm"; export function useKeyframedNumberProperty({ trackId, @@ -27,7 +28,7 @@ export function useKeyframedNumberProperty({ elementId: string; animations: ElementAnimations | undefined; propertyPath: AnimationPropertyPath; - localTime: number; + localTime: MediaTime; isPlayheadWithinElementRange: boolean; displayValue: string; parse: (input: string) => number | null; -- cgit v1.3.1