Skip to content

Commit 281fe39

Browse files
committed
Merge pull request godotengine#91699 from KoBeWi/buff_tree_folding
Fold TreeItems when clicking to the left of fold icon
2 parents a7f4860 + 9bc5a85 commit 281fe39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/tree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2828,7 +2828,7 @@ int Tree::propagate_mouse_event(const Point2i &p_pos, int x_ofs, int y_ofs, int
28282828
return -1;
28292829
}
28302830

2831-
if (!p_item->disable_folding && !hide_folding && p_item->first_child && (p_pos.x >= x_ofs && p_pos.x < (x_ofs + theme_cache.item_margin))) {
2831+
if (!p_item->disable_folding && !hide_folding && p_item->first_child && (p_pos.x < (x_ofs + theme_cache.item_margin))) {
28322832
if (enable_recursive_folding && p_mod->is_shift_pressed()) {
28332833
p_item->set_collapsed_recursive(!p_item->is_collapsed());
28342834
} else {

0 commit comments

Comments
 (0)