Demo: Rework Clipping section. Fix for static analysis. Added bindings in Readme.

This commit is contained in:
omar
2020-08-04 12:05:15 +02:00
parent 963839373c
commit db886f3953
5 changed files with 66 additions and 20 deletions

View File

@ -3373,8 +3373,8 @@ void ImGui::UpdateMouseMovingWindowEndFrame()
if (!root_window->TitleBarRect().Contains(g.IO.MouseClickedPos[0]))
g.MovingWindow = NULL;
// Cancel moving if clicked over an item which was disabled or inhibited by popups
if (g.HoveredId == 0 && g.HoveredIdDisabled)
// Cancel moving if clicked over an item which was disabled or inhibited by popups (note that we know HoveredId == 0 already)
if (g.HoveredIdDisabled)
g.MovingWindow = NULL;
}
else if (root_window == NULL && g.NavWindow != NULL && GetTopMostPopupModal() == NULL)