mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 12:54:29 +00:00
fix(studio): restore root-id resolution comment in __timelines path
This commit is contained in:
@@ -134,6 +134,10 @@ export function useTimelinePlayer() {
|
||||
if (win.__timelines) {
|
||||
const keys = Object.keys(win.__timelines);
|
||||
if (keys.length > 0) {
|
||||
// Resolve the root composition id from the DOM — the outermost
|
||||
// `[data-composition-id]` element is the master. Without this,
|
||||
// Object.keys() order would let a sub-composition's timeline
|
||||
// hijack play/pause/seek and the duration readout.
|
||||
const rootId = iframe?.contentDocument
|
||||
?.querySelector("[data-composition-id]")
|
||||
?.getAttribute("data-composition-id");
|
||||
|
||||
Reference in New Issue
Block a user