mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
Can't scroll with mouse wheel when window is collapsed.
This commit is contained in:
parent
1b28f11acb
commit
e7b43b014b
@ -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…
Reference in New Issue
Block a user