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

fix(indev): fix LV_EVENT_SCROLL_THROW_BEGIN not send to scroll_obj (#6693)

Signed-off-by: yushuailong1 <yushuailong1@xiaomi.com>
Co-authored-by: yushuailong1 <yushuailong1@xiaomi.com>
This commit is contained in:
yushuailong 2024-08-26 15:54:54 +08:00 committed by GitHub
parent 016b397642
commit d028a970a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1363,7 +1363,8 @@ static void indev_proc_release(lv_indev_t * indev)
if(send_event(LV_EVENT_CLICKED, indev_act) == LV_RESULT_INVALID) return;
}
else {
if(send_event(LV_EVENT_SCROLL_THROW_BEGIN, indev_act) == LV_RESULT_INVALID) return;
lv_obj_send_event(scroll_obj, LV_EVENT_SCROLL_THROW_BEGIN, indev_act);
if(indev_reset_check(indev)) return;
}
}
indev->pointer.act_obj = NULL;