1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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

View File

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