From 6e33dfcfb19324af2547208e4ce9deaafa16a316 Mon Sep 17 00:00:00 2001 From: Alex Vanderveen Date: Thu, 8 Oct 2026 19:15:07 -0400 Subject: [PATCH] hub: let the nav drawer scroll once it outgrows the screen The drawer opted out of the mouse wheel, and touch drag-scroll follows the same opt-out, so on a landscape phone (~480 logical units tall) its last items and version block were unreachable. Every other window that opts out permanently keeps its scrolling in an inner child; the drawer holds its items directly, so it scrolls itself. Still no scrollbar: it would sit on the neon edge. Co-Authored-By: Claude Opus 5.5 --- src/hub/hub_main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hub/hub_main.cpp b/src/hub/hub_main.cpp index dbcaa2e..4ab2185 100644 --- a/src/hub/hub_main.cpp +++ b/src/hub/hub_main.cpp @@ -2901,10 +2901,12 @@ void draw_nav_drawer(HubModel& hub, const Theme& th, float t) { ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.f); ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.f); ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(20.f, 20.f)); + // Scrolls (wheel, touch drag) once its items outgrow the screen — a phone + // in landscape is about 480 logical units tall. No scrollbar: it would sit + // on the neon edge. ImGui::Begin("##nav_drawer", nullptr, ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | - ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoScrollbar | - ImGuiWindowFlags_NoScrollWithMouse); + ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoScrollbar); { ImDrawList* dl = ImGui::GetWindowDrawList(); const ImVec2 wp = ImGui::GetWindowPos();