Skip to content

fix(panel): scroll the outcomes overview with the arrow keys - #203

Merged
StuBehan merged 1 commit into
mainfrom
fix/outcomes-arrow-scroll
Sep 25, 2026
Merged

StuBehan merged 1 commit into
mainfrom
fix/outcomes-arrow-scroll

Conversation

@StuBehan

Copy link
Copy Markdown
Collaborator

↑↓ stopped scrolling the Outcomes overview after #194. The key handler scrolls by grabbing the first NSScrollView in the panel, which was fine while every tab only had one, but the tab strip is a sideways ScrollView now and sits above every page so it won. The arrows were scrolling the tab strip vertically, which has nowhere to go.

Same bug on the Usage detail pane and ⌘↑↓ on both, since they all went through the same lookup.

Now it takes the first scroll view whose content actually overflows vertically. If nothing overflows it finds nothing, which is fine as there's nothing to scroll anyway.

Unit tested with plain NSScrollViews (strip above an overflowing pane, and nothing overflowing). Haven't eyeballed it in the app yet, it relies on SwiftUI giving the tab strip content the same height as its viewport.

@StuBehan
StuBehan merged commit 49d05b8 into main Sep 25, 2026
7 checks passed
@StuBehan
StuBehan deleted the fix/outcomes-arrow-scroll branch September 25, 2026 10:23
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