mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-04 21:17:30 +00:00
feat: auto-open timeline clip layers
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user