Skip to content

Commit

Permalink
Revert "fix(indev) focus on objects on release instead of press"
Browse files Browse the repository at this point in the history
This reverts commit 76a8293.

Revert because it breaks the drop down list.
If the dropdown list is opened and the parent is scrolled
the dropdown is not defocused and not closed.

Fixes #2417
kisvegabor committed Aug 2, 2021
1 parent f2c2393 commit f61b2ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/lv_indev.c
Original file line number Diff line number Diff line change
@@ -845,6 +845,11 @@ static void indev_proc_press(_lv_indev_proc_t * proc)
if(indev_reset_check(proc)) return;

if(indev_act->proc.wait_until_release) return;

/*Handle focus*/
indev_click_focus(&indev_act->proc);
if(indev_reset_check(proc)) return;

}
}

@@ -924,11 +929,6 @@ static void indev_proc_release(_lv_indev_proc_t * proc)

/*Send CLICK if no scrolling*/
if(scroll_obj == NULL) {

/*Handle focus*/
indev_click_focus(&indev_act->proc);
if(indev_reset_check(proc)) return;

if(proc->long_pr_sent == 0) {
lv_event_send(indev_obj_act, LV_EVENT_SHORT_CLICKED, indev_act);
if(indev_reset_check(proc)) return;

0 comments on commit f61b2ca

Please sign in to comment.