1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-09-24 19:48:34 +02: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)