feat: scroll the sidebar controls with the mouse wheel when they overflow

The left-hand control panel is laid out top-to-bottom with a running y; with
annotations expanded or a short window, the bottom buttons (export, signal
info, about) ran off the bottom and were unreachable. Offset the content by a
sidebarScroll amount, measure the laid-out height, and let the wheel scroll it
(clamped) when the cursor is over the sidebar and no modal is open. No visible
scrollbar; the spectrogram's wheel-zoom already ignores the sidebar column so
the two never both fire.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-05 16:09:38 -07:00
parent b95cafdf3b
commit b72e1cef18
2 changed files with 28 additions and 2 deletions
+3
View File
@@ -187,6 +187,9 @@ typedef struct {
// Overlays
bool showAbout; // About / help dialog
// Sidebar scroll offset (px), for when controls overflow a short window
float sidebarScroll;
// File browser state
bool showFileBrowser;
char browserPath[512];