1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

Revert IsItemHovered() change for TabId. (#8877, #8883)

Amend 774ddb5 for docking. Revert 5a6fa33.
This commit is contained in:
ocornut 2025-08-13 17:32:36 +02:00
parent 160e3683ab
commit 1f7f1f54af

View file

@ -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;
}