From 8063fac793b0a09add1e57c1115b734659274e6f Mon Sep 17 00:00:00 2001 From: BurkerA <87374013+BurkerA@users.noreply.github.com> Date: Wed, 9 Aug 2023 14:43:21 +0200 Subject: [PATCH] fix(btnmatrix): fix tapping just outside a button in a buttonmatrix See #4439 --- src/widgets/lv_btnmatrix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widgets/lv_btnmatrix.c b/src/widgets/lv_btnmatrix.c index 1d2df0d8c..b0dc8df3f 100644 --- a/src/widgets/lv_btnmatrix.c +++ b/src/widgets/lv_btnmatrix.c @@ -440,6 +440,7 @@ static void lv_btnmatrix_event(const lv_obj_class_t * class_p, lv_event_t * e) lv_indev_get_point(param, &p); btn_pr = get_button_from_point(obj, &p); /*Handle the case where there is no button there*/ + btnm->btn_id_sel = LV_BTNMATRIX_BTN_NONE; if(btn_pr != LV_BTNMATRIX_BTN_NONE) { if(button_is_inactive(btnm->ctrl_bits[btn_pr]) == false && button_is_hidden(btnm->ctrl_bits[btn_pr]) == false) {