Browse Source

Can't scroll with mouse wheel when window is collapsed.

ocornut 10 years ago
parent
commit
e7b43b014b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      imgui.cpp

+ 1 - 1
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)