fix(btnmatrix): fix tapping just outside a button in a buttonmatrix

See #4439
This commit is contained in:
BurkerA
2023-08-09 14:43:21 +02:00
committed by GitHub
parent 9ec3b8706b
commit 8063fac793

View File

@@ -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) {