You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note for future myself:
The "naive" change would be to change the code in IsItemHovered() to:
// Test if using AllowOverlap and overlapped
if ((flags & ImGuiHoveredFlags_AllowWhenOverlappedByItem) == 0 && id != 0)
{
if (g.LastItemData.ItemFlags & ImGuiItemFlags_AllowOverlap)
{
if (g.HoveredIdPreviousFrame != g.LastItemData.ID)
return false;
}
++ else++ {++ if (g.HoveredId != g.LastItemData.ID && g.HoveredId != 0 && !g.HoveredIdAllowOverlap)++ return false;++ }
}
Which breaks the following tests:
window_title_context_menu
widgets_hover
widgets_overlap_3_timing
widgets_selectable_span_all_columns
widgets_selectable_span_all_table
widgets_overlap_3_timing had a IMGUI_BROKEN_TESTS block, new behavior seems better.
Both widgets_selectable_span_all_columns and widgets_selectable_span_all_table were actually incorrect and this revealed it.
But:
widgets_hover
Fails trying to call IsItemHovered() after EndChild().
window_title_context_menu
Highlight a non trivial issue: with this change BeginPopupContextItem() doesn't work when hovering the Close Button, because the function calls IsItemHovered(). In this case the submission order is: CloseButton(), then TitleBar but via SetLastItemDataForWindow() without a call to ItemHoverable().
Version/Branch of Dear ImGui:
Version 1.91.8 master
Back-ends:
n/a
Compiler, OS:
n/a
Full config/build information:
Linking to e.g. #6610 for this is a different issue.
Details:
My Issue/Question:
XXX (please provide as much context as possible)
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: