fix: subscribe to playback time so keyframe button updates on frame change
Made-with: Cursor
This commit is contained in:
parent
1bd9fac203
commit
0997466331
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue