fix: subscribe to playback time so keyframe button updates on frame change

Made-with: Cursor
This commit is contained in:
Maze 2026-04-05 13:37:29 +02:00
parent 1bd9fac203
commit 0997466331
1 changed files with 1 additions and 2 deletions

View File

@ -9,8 +9,7 @@ export function useElementPlayhead({
startTime: number; startTime: number;
duration: number; duration: number;
}) { }) {
const editor = useEditor(); const playheadTime = useEditor((editor) => editor.playback.getCurrentTime());
const playheadTime = editor.playback.getCurrentTime();
const localTime = getElementLocalTime({ const localTime = getElementLocalTime({
timelineTime: playheadTime, timelineTime: playheadTime,
elementStartTime: startTime, elementStartTime: startTime,