fix(studio): restore root-id resolution comment in __timelines path

This commit is contained in:
Miguel Ángel
2026-05-18 18:20:34 -04:00
parent b32a62d4d1
commit 10af9655f2
@@ -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");