fix(gridnav) correct logic in find_last_focusable (#3423)

This commit is contained in:
Eugene Yaremenko
2022-06-23 16:14:33 +02:00
committed by GitHub
parent 6b2eac1dd7
commit 4056a15ecc
+1 -1
View File
@@ -348,7 +348,7 @@ static lv_obj_t * find_last_focusable(lv_obj_t * obj)
{
uint32_t child_cnt = lv_obj_get_child_cnt(obj);
int32_t i;
for(i = child_cnt - 1; i >= 0; i++) {
for(i = child_cnt - 1; i >= 0; i--) {
lv_obj_t * child = lv_obj_get_child(obj, i);
if(obj_is_focuable(child)) return child;
}