1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(btnmatrix): set LV_BTNMATRIX_BTN_NONE when clicking of disabled button (#4571) (#4578)

Co-authored-by: Gregor Buß <gb@tetratec.de>
This commit is contained in:
Gregor 2023-09-21 10:35:59 +02:00 committed by Gabor Kiss-Vamosi
parent 7a306da303
commit b7be054493

View File

@ -435,6 +435,9 @@ static void lv_buttonmatrix_event(const lv_obj_class_t * class_p, lv_event_t * e
invalidate_button_area(obj, btnm->btn_id_sel); /*Invalidate the new area*/
}
}
else {
btnm->btn_id_sel = LV_BUTTONMATRIX_BUTTON_NONE;
}
}
if(btnm->btn_id_sel != LV_BUTTONMATRIX_BUTTON_NONE) {