PageDown key selects last one when left items count is short

This commit is contained in:
volzhs 2019-05-21 03:34:55 +09:00
parent 053808e194
commit 6f97022041
1 changed files with 2 additions and 2 deletions

View File

@ -2266,7 +2266,7 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
next = _n; next = _n;
} else { } else {
return; break;
} }
} }
if (next == selected_item) if (next == selected_item)
@ -2304,7 +2304,7 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
prev = _n; prev = _n;
} else { } else {
return; break;
} }
} }
if (prev == selected_item) if (prev == selected_item)