Skip to content

fix(studio): keep preview selection overlay visible while element selected - #785

Closed
Jefsky wants to merge 1 commit into
heygen-com:mainfrom
Jefsky:fix/preview-selection-overlay
Closed

fix(studio): keep preview selection overlay visible while element selected#785
Jefsky wants to merge 1 commit into
heygen-com:mainfrom
Jefsky:fix/preview-selection-overlay

Conversation

@Jefsky

@Jefsky Jefsky commented May 13, 2026

Copy link
Copy Markdown
Contributor

Summary

The selection overlay in the Studio preview was disappearing even while an element remained selected, because its visibility was tied to the element being active at the current playback time. This caused the overlay to flicker/disappear during playback.

What changed

packages/studio/src/App.tsx - shouldShowSelectedDomBounds now checks selectedTimelineElement != null instead of also requiring the element to be timeline-active. The overlay stays visible whenever something is selected and the inspector panel is open.

Closes #777

…ected

The selection overlay was hidden whenever the selected timeline element
was not active at the current playback time (isTimelineElementActiveAtTime
check). This caused the overlay to flicker/disappear during playback for
elements that don't span the playhead position.

Now the overlay stays visible whenever an element is selected and the
inspector panel is open, regardless of playback state.

Fixes heygen-com#777
@miguel-heygen

Copy link
Copy Markdown
Collaborator

I merged a pr addressing the same thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants