Skip to content

Commit

Permalink
Tables: fixed TableGetHoveredRow() with overlapping frozen rows (#7350,
Browse files Browse the repository at this point in the history
  • Loading branch information
GamingMinds-DanielC authored and ocornut committed Feb 26, 2024
1 parent e46d1e6 commit 725f919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui_tables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ void ImGui::TableEndRow(ImGuiTable* table)
if (is_visible)
{
// Update data for TableGetHoveredRow()
if (table->HoveredColumnBody != -1 && g.IO.MousePos.y >= bg_y1 && g.IO.MousePos.y < bg_y2)
if (table->HoveredColumnBody != -1 && g.IO.MousePos.y >= bg_y1 && g.IO.MousePos.y < bg_y2 && table_instance->HoveredRowNext < 0)
table_instance->HoveredRowNext = table->CurrentRow;

// Decide of background color for the row
Expand Down

0 comments on commit 725f919

Please sign in to comment.