Skip to content

feat(studio): support middle-mouse panning in preview#888

Open
func25 wants to merge 1 commit into
heygen-com:mainfrom
func25:preview-pan-overscroll
Open

feat(studio): support middle-mouse panning in preview#888
func25 wants to merge 1 commit into
heygen-com:mainfrom
func25:preview-pan-overscroll

Conversation

@func25
Copy link
Copy Markdown
Contributor

@func25 func25 commented May 16, 2026

What

Add middle-mouse panning to the Studio preview.

Why

This is the convenient and standard way to move around the preview in many visualization platforms.

How

  • Handle preview panning through the shared preview surface instead of an overlay-specific path.
  • Allow panning with the middle mouse button.
  • Keep pan clamped to the real content surface, but add a small overscroll margin so it does not hard-stop at the content edge.

Test plan

How was this tested?

  • Unit tests added/updated
  • Manual testing performed
  • Documentation updated (if applicable)

@miguel-heygen
Copy link
Copy Markdown
Collaborator

can you share a video testing it pls?

@func25
Copy link
Copy Markdown
Contributor Author

func25 commented May 16, 2026

Sure, here is the white scene test video, use midlde-mouse to move around:

Screen.Recording.2026-05-16.at.13.42.30.mov

@func25 func25 force-pushed the preview-pan-overscroll branch from c77408e to 5ddd137 Compare May 16, 2026 12:07
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