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:
parent
bf4354f158
commit
ebcdb26e29
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user