Merge pull request #103168 from Giganzo/tree-edge-hover

Fix Tree hover position with multiple columns
This commit is contained in:
Rémi Verschelde 2025-02-25 15:27:59 +01:00
commit c4731e1d5b
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -5487,15 +5487,14 @@ Tree::FindColumnButtonResult Tree::_find_column_and_button_at_pos(int p_x, const
} }
} }
if (x > col_width) { if (x < col_width) {
col_ofs += col_width; col = i;
x -= col_width; break;
limit_w -= col_width;
continue;
} }
col = i; col_ofs += col_width;
break; x -= col_width;
limit_w -= col_width;
} }
if (col >= 0) { if (col >= 0) {