1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-12 10:11:00 +01:00

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

This commit is contained in:
ocornut 2015-06-19 17:43:51 -06:00
parent 1b28f11acb
commit e7b43b014b

View File

@ -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)