Skip to content

fix(studio): the output picker scrolls inside the window - #265

Merged
kixelated merged 4 commits into
mainfrom
quest/m0/ux/output-picker-scroll
Nov 25, 2026
Merged

kixelated merged 4 commits into
mainfrom
quest/m0/ux/output-picker-scroll

Conversation

@kixelated

@kixelated kixelated commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Finishes quest/m0/ux/output-picker-scroll.md: the Listen on output picker scrolls and stays inside the window, however many outputs the system lists.

Changes

  • Speakers::menu (rs/moq-studio/src/ui/mixer.rs) puts the outputs in a vertical ScrollArea. The Listen on heading, System default, and Look for outputs again stay outside the scroll area, so they're always visible. The wheel and a trackpad scroll it like any egui scroll area. The menu draws both pickers: Listen's On … tag and a sound's Monitor in headphones.
  • Height cap: half the window, less 120 px for the popover's other rows, with a 96 px floor. The Plan said "what fits under the button", but egui opens the popover on whichever side of its button has room. The roomier side always has at least half the window, so this cap fits wherever the popover opens and needs no anchor plumbing.
  • Listen's On … popover now closes only on a click outside it or on a pick (CloseOnClickOutside plus ui.close()), as the sound-options picker does. Before, any click closed it, so a click on the new scrollbar would have dismissed it. Look for outputs again now keeps it open too.
  • Deletes the quest file (no other quest links it).

Choices made without asking

  • I tested with a kittest unit test rather than a just shots view. The On … tag only shows while Listen plays, which needs the capture feature, and just shots builds without it, so no shot can show this picker. No other UI changed, so there are no shots to update.

Caused by

Public API and wire

None.

Validation

  • ui::mixer::tests::many_outputs_scroll_in_the_window: an 800×400 window with a button at its foot opens the same popover as the On … tag (same frame, align, gap, and width) with 28 outputs. It checks that the popover stays inside the window and that Output 28 starts out of sight. A real MouseWheel event over the list then brings it into the popover, System default stays visible, and clicking Output 28 picks it.
  • With the cap removed (max_height(f32::INFINITY)), the test fails at the popover-inside-window assertion. With the cap, it passes.
  • just ci passes.
  • Not run: the app on a desktop with PipeWire and many outputs (this runs headless, and Listen needs capture and a real audio output).

Follow-ups

None.

Models

Size: XS
Implementer: Claude Code, claude-opus-5-5, unknown (arm B)

🤖 Generated with Claude Code

(Written by Claude Opus 5.5)

Review

Rewritten by quest review after each round.

  • Head: 982281a

  • Base: origin/main at 9a8ef4b

  • Risk: medium, the base has no RISK.md to name what is always high or customer-facing, so every change is medium

  • Classified: medium by default

  • Reviewer: Codex, gpt-6.2-sol, low effort

  • Session: 01a214ff-b055-76d3-919b-4acce2dd4450, round 2

  • Score: 10/10, The MIX Listen picker stays open during scrollbar interaction and closes when the output changes, with no new findings.

  • Rounds: 2; first round 1 (medium 1); findings 1 (medium 1): fixed 1, refuted 0, open 0

  • Findings: none

  • The last round's findings, at cfcc207:

    • Fixed: medium, rs/moq-studio/src/ui/mixer.rs:1735: Keep the Listen picker open when its scrollbar is clicked; At rs/moq-studio/src/ui/mixer.rs:755, `listen_tag` uses `CloseOnClickOutside` to keep scrollbar clicks from dismissing the picker and calls `ui.close()` when the selected output changes.

kixelated and others added 2 commits November 25, 2026 14:51
Listen on's output list drew every output a desktop listed with no scroll
area; 28 PipeWire outputs ran off screen. The list now scrolls within half
the window less the popover's other rows, which fits on whichever side of
its button egui opens it. A kittest test puts 28 outputs under a button at
the foot of a short window, then wheels to the last and picks it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated kixelated changed the title The output picker scrolls fix(studio): the output picker scrolls inside the window Nov 25, 2026
…cker open

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as ready for review November 25, 2026 23:20
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 28 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 93feacfd-c492-437c-afce-cd83f0b8513a
Commits

Reviewing files that changed from the base of the PR and between 9a8ef4b and c0884d2.

Files selected for processing: 2

  • quest/m0/ux/output-picker-scroll.md
  • rs/moq-studio/src/ui/mixer.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@kixelated
kixelated enabled auto-merge (squash) November 25, 2026 23:35
@kixelated
kixelated merged commit c3f0578 into main Nov 25, 2026
3 checks passed
@kixelated
kixelated deleted the quest/m0/ux/output-picker-scroll branch November 25, 2026 23:43
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.

1 participant