From e002266607552655844b747dcac9b1cc2ca090fe Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 11 Mar 2026 23:01:37 -0700 Subject: [PATCH] Add scroll wheel zoom to minimap --- src/ui/game_screen.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/ui/game_screen.cpp b/src/ui/game_screen.cpp index deefa228..93617ca5 100644 --- a/src/ui/game_screen.cpp +++ b/src/ui/game_screen.cpp @@ -10654,6 +10654,22 @@ void GameScreen::renderMinimapMarkers(game::GameHandler& gameHandler) { } } + // Scroll wheel over minimap → zoom in/out + { + float wheel = ImGui::GetIO().MouseWheel; + if (wheel != 0.0f) { + ImVec2 mouse = ImGui::GetMousePos(); + float mdx = mouse.x - centerX; + float mdy = mouse.y - centerY; + if (mdx * mdx + mdy * mdy <= mapRadius * mapRadius) { + if (wheel > 0.0f) + minimap->zoomIn(); + else + minimap->zoomOut(); + } + } + } + // Ctrl+click on minimap → send minimap ping to party if (ImGui::IsMouseClicked(0) && ImGui::GetIO().KeyCtrl) { ImVec2 mouse = ImGui::GetMousePos();