fix(event): fix typos and tests

This commit is contained in:
Gabor Kiss-Vamosi
2023-03-06 12:59:57 +01:00
parent d81e126b6f
commit 6cd98892a4
25 changed files with 30 additions and 29 deletions

View File

@@ -326,7 +326,7 @@ static void lv_roller_event(const lv_obj_class_t * class_p, lv_event_t * e)
lv_res_t res;
/*Call the ancestor's event handler*/
res = lv_event_base(MY_CLASS, e);
res = lv_obj_event_base(MY_CLASS, e);
if(res != LV_RES_OK) return;
const lv_event_code_t code = lv_event_get_code(e);
@@ -432,7 +432,7 @@ static void lv_roller_label_event(const lv_obj_class_t * class_p, lv_event_t * e
/*LV_EVENT_DRAW_MAIN will be called in the draw function*/
if(code != LV_EVENT_DRAW_MAIN) {
/* Call the ancestor's event handler */
res = lv_event_base(MY_CLASS_LABEL, e);
res = lv_obj_event_base(MY_CLASS_LABEL, e);
if(res != LV_RES_OK) return;
}