Internals: reorder tests in ItemHoverable() so most likely early out are taken first.

This commit is contained in:
ocornut
2023-06-27 15:43:33 +02:00
parent 836aff3467
commit b03a4993b3
2 changed files with 5 additions and 7 deletions

View File

@ -1167,8 +1167,6 @@ void ImGui::TableUpdateLayout(ImGuiTable* table)
// Process hit-testing on resizing borders. Actual size change will be applied in EndTable()
// - Set table->HoveredColumnBorder with a short delay/timer to reduce visual feedback noise.
// - Submit ahead of table contents and header, use ImGuiButtonFlags_AllowItemOverlap to prioritize
// widgets overlapping the same area.
void ImGui::TableUpdateBorders(ImGuiTable* table)
{
ImGuiContext& g = *GImGui;