diff --git a/imgui.cpp b/imgui.cpp index b69b9ca..1330943 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7265,8 +7265,11 @@ window->DC.LastItemRect = bb; if (IsClipped(bb)) { - window->DC.LastItemHoveredAndUsable = window->DC.LastItemHoveredRect = false; - return false; + if (!id || *id != GImGui->ActiveId) + { + window->DC.LastItemHoveredAndUsable = window->DC.LastItemHoveredRect = false; + return false; + } } // This is a sensible default, but widgets are free to override it after calling ItemAdd()