From e7b43b014bfaa756417b91d0b89b4b4c09750758 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 19 Jun 2015 17:43:51 -0600 Subject: [PATCH] Can't scroll with mouse wheel when window is collapsed. --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 2388ab44..f452f0e8 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2170,7 +2170,7 @@ void ImGui::NewFrame() g.HoveredWindow = g.HoveredRootWindow = NULL; // Scale & Scrolling - if (g.HoveredWindow && g.IO.MouseWheel != 0.0f) + if (g.HoveredWindow && g.IO.MouseWheel != 0.0f && !g.HoveredWindow->Collapsed) { ImGuiWindow* window = g.HoveredWindow; if (g.IO.KeyCtrl)