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;
|
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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue