mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-21 01:44:21 +00:00
Can't scroll with mouse wheel when window is collapsed.
This commit is contained in:
parent
1b28f11acb
commit
e7b43b014b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue