From fd6d7119f5ff8d7407eddf8e81451b18a81de33a Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Fri, 26 Jul 2019 13:22:09 +0200 Subject: [PATCH] indev: seng LV_EVENT_CLICK on if the object is not dragged --- src/lv_core/lv_indev.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lv_core/lv_indev.c b/src/lv_core/lv_indev.c index 1afb037fa..86e343a60 100644 --- a/src/lv_core/lv_indev.c +++ b/src/lv_core/lv_indev.c @@ -868,8 +868,10 @@ static void indev_proc_release(lv_indev_proc_t * proc) if(indev_reset_check(proc)) return; } - lv_event_send(indev_obj_act, LV_EVENT_CLICKED, NULL); - if(indev_reset_check(proc)) return; + if(proc->types.pointer.drag_in_prog == 0) { + lv_event_send(indev_obj_act, LV_EVENT_CLICKED, NULL); + if(indev_reset_check(proc)) return; + } lv_event_send(indev_obj_act, LV_EVENT_RELEASED, NULL); if(indev_reset_check(proc)) return;