The open-source CapCut alternative
fix: subscribe to playback time so keyframe button updates on frame change
Maze099746633183
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.tsindex 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,