feat: auto-open timeline clip layers

This commit is contained in:
Miguel Ángel
2026-05-08 18:23:49 -07:00
parent c2738364aa
commit ba29781c56
+14 -1
View File
@@ -2398,8 +2398,21 @@ export function StudioApp() {
const selection = buildDomSelectionForTimelineElement(element);
if (selection) applyDomSelection(selection);
const key = getTimelineElementKey(element);
if (STUDIO_TIMELINE_LAYER_INSPECTOR_ENABLED && key && canInspectTimelineElement(element)) {
setInspectedTimelineElementId(key);
setLeftCollapsed(false);
const iframe = previewIframeRef.current;
if (!shouldShowTimelineInspectorBounds(currentTime, element)) {
seekStudioPreview(iframe, element.start);
}
} else {
setInspectedTimelineElementId(null);
}
},
[applyDomSelection, buildDomSelectionForTimelineElement],
[applyDomSelection, buildDomSelectionForTimelineElement, currentTime],
);
const handleTimelineElementInspect = useCallback(