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

features/sdl_renderer3_multiviewports
ocornut ago%!(EXTRA string=10 years)
parent 1b28f11acb
commit e7b43b014b
  1. 2
      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)

Loading…
Cancel
Save