mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-09 23:54:20 +00:00
parent
160e3683ab
commit
1f7f1f54af
1 changed files with 3 additions and 0 deletions
|
|
@ -4818,6 +4818,9 @@ bool ImGui::IsItemHovered(ImGuiHoveredFlags flags)
|
|||
bool cancel_is_hovered = true;
|
||||
if (g.ActiveId == window->MoveId && (id == 0 || g.ActiveIdDisabledId == id))
|
||||
cancel_is_hovered = false;
|
||||
// When ActiveId == TabId it means user clicked docking tab for the window.
|
||||
if (g.ActiveId == window->TabId)
|
||||
cancel_is_hovered = false;
|
||||
if (cancel_is_hovered)
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue