From 099746633183cd061fc89a63aeb9fcfb909f6db2 Mon Sep 17 00:00:00 2001 From: Maze Date: Sun, 5 Apr 2026 13:37:29 +0200 Subject: [PATCH] fix: subscribe to playback time so keyframe button updates on frame change Made-with: Cursor --- .../editor/panels/properties/hooks/use-element-playhead.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/web/src/components/editor/panels/properties/hooks/use-element-playhead.ts b/apps/web/src/components/editor/panels/properties/hooks/use-element-playhead.ts index 95f338e1..a900cb13 100644 --- a/apps/web/src/components/editor/panels/properties/hooks/use-element-playhead.ts +++ b/apps/web/src/components/editor/panels/properties/hooks/use-element-playhead.ts @@ -9,8 +9,7 @@ export function useElementPlayhead({ startTime: number; duration: number; }) { - const editor = useEditor(); - const playheadTime = editor.playback.getCurrentTime(); + const playheadTime = useEditor((editor) => editor.playback.getCurrentTime()); const localTime = getElementLocalTime({ timelineTime: playheadTime, elementStartTime: startTime,