File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -4347,11 +4347,9 @@ static bool IsHovered(const ImRect& bb, ImGuiID id)
4347
4347
{
4348
4348
ImGuiWindow* window = GetCurrentWindow ();
4349
4349
if (g.HoveredRootWindow == window->RootWindow )
4350
- {
4351
4350
if ((g.ActiveId == 0 || g.ActiveId == id || g.ActiveIdIsFocusedOnly ) && IsMouseHoveringRect (bb))
4352
4351
if (IsWindowContentHoverable (g.HoveredRootWindow ))
4353
4352
return true ;
4354
- }
4355
4353
}
4356
4354
return false ;
4357
4355
}
@@ -7215,9 +7213,10 @@ static bool ItemAdd(const ImRect& bb, const ImGuiID* id)
7215
7213
// So that clicking on items with no active id such as Text() still returns true with IsItemHovered()
7216
7214
window->DC .LastItemHoveredRect = true ;
7217
7215
window->DC .LastItemHoveredAndUsable = false ;
7218
- if (g.ActiveId == 0 || (id && g.ActiveId == *id) || g.ActiveIdIsFocusedOnly || (g.ActiveId == window->MoveID ))
7219
- if (IsWindowContentHoverable (window))
7220
- window->DC .LastItemHoveredAndUsable = true ;
7216
+ if (g.HoveredRootWindow == window->RootWindow )
7217
+ if (g.ActiveId == 0 || (id && g.ActiveId == *id) || g.ActiveIdIsFocusedOnly || (g.ActiveId == window->MoveID ))
7218
+ if (IsWindowContentHoverable (window))
7219
+ window->DC .LastItemHoveredAndUsable = true ;
7221
7220
}
7222
7221
else
7223
7222
{
You can’t perform that action at this time.
0 commit comments