1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(indev): change LV_EVENT_LONG_PRESSED to code (#5000)

Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
This commit is contained in:
jianglianfang 2023-12-13 22:48:57 +08:00 committed by GitHub
parent bf4354f158
commit ebcdb26e29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1508,7 +1508,7 @@ static lv_result_t send_event(lv_event_code_t code, void * param)
code == LV_EVENT_RELEASED ||
code == LV_EVENT_LONG_PRESSED ||
code == LV_EVENT_LONG_PRESSED_REPEAT) {
lv_indev_send_event(indev_act, LV_EVENT_LONG_PRESSED, indev_obj_act);
lv_indev_send_event(indev_act, code, indev_obj_act);
if(indev_reset_check(indev_act)) return LV_RESULT_INVALID;
}