我创建一个label显示,用tabview创建两个标签页,滑动时识别不到手势事件

我创建一个label显示,用tabview创建两个标签页,给第一个标签页添加回调事件,想在第一个标签页向左滑动姿势时更改label的显示,但是没成功,检测不到手势,请教一下哪里出了问题吗?
代码如下:
lv_obj_t *area_show = lv_obj_create(page);
lv_obj_set_size(area_show, 190, 240);
lv_obj_set_pos(area_show, 0, 0);
lv_obj_set_style_bg_color(area_show, lv_color_hex(0xd2d2d8), 0);
lv_obj_set_style_bg_opa(area_show, LV_OPA_COVER, 0);

lv_obj_t *label_info = lv_label_create(area_show);
lv_obj_set_size(label_info, 100,50);
lv_obj_set_pos(label_info, 0, 0);
lv_obj_set_style_text_align(label_info, LV_TEXT_ALIGN_CENTER, 0);
lv_label_set_text(label_info, "Type 1");

lv_obj_t *brand_show_info = lv_tabview_create(page, LV_DIR_TOP, 0);
lv_obj_set_size(brand_show_info, 500,240);
lv_obj_set_pos(brand_show_info, 190, 0);

lv_obj_t *brand1 = lv_tabview_add_tab(brand_show_info, "");
lv_obj_t *label_1 = lv_label_create(brand1);
lv_label_set_text(label_1, "page1:");

lv_obj_t *brand2 = lv_tabview_add_tab(brand_show_info, "");
lv_obj_t *label_2 = lv_label_create(brand2);
lv_label_set_text(label_2, "page2:");

lv_obj_add_event_cb(brand1, switch_brand_type, LV_EVENT_ALL, label_info);

void switch_brand_type(lv_event_t *e)
{
lv_event_code_t event_code = lv_event_get_code(e);
lv_obj_t *label = lv_event_get_user_data(e);
lv_obj_t *target = lv_event_get_target(e);

if(event_code == LV_EVENT_GESTURE)
{
    lv_indev_wait_release(lv_indev_get_act());
    lv_dir_t dir = lv_indev_get_gesture_dir(lv_indev_get_act());

    if(dir == LV_DIR_LEFT)
    {
        type_flag = 1;
        lv_label_set_text(label, "type 2");
    }

    if(dir == LV_DIR_RIGHT)
    {
        lv_label_set_text(label, "type 1");
    }
}

}