fix(event): fix typos and tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user