Repository navigation
fix(studio): the output picker scrolls inside the window - #265
Merged
Merged
Conversation
Quest-Claim: 14289705db09cb3e
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>
…cker open Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kixelated
marked this pull request as ready for review
November 25, 2026 23:20
|
Warning Review limit reachedYou'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. View limit details
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 verticalScrollArea. 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.CloseOnClickOutsideplusui.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.Choices made without asking
just shotsview. The On … tag only shows while Listen plays, which needs thecapturefeature, andjust shotsbuilds without it, so no shot can show this picker. No other UI changed, so there are no shots to update.Caused by
ComboBoxfrom feat(studio): audio mixes, routing, meters, listening, and sync delay #32 with a popover menu that lists every output with no scroll area (found by person: maintainer's first launch on GNOME Wayland with 28 PipeWire outputs)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 realMouseWheelevent over the list then brings it into the popover, System default stays visible, and clicking Output 28 picks it.max_height(f32::INFINITY)), the test fails at the popover-inside-window assertion. With the cap, it passes.just cipasses.captureand 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 reviewafter 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 mediumClassified: medium by default
Reviewer: Codex, gpt-6.2-sol, low effort
Session:
01a214ff-b055-76d3-919b-4acce2dd4450, round 2Score: 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:
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.