From e1a4590fe3556df867bae87c874e6cf5c8477bcf Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Wed, 26 Jun 2019 17:51:03 +0200 Subject: [PATCH] indev: don't set drag_in_prog if not moved --- src/lv_core/lv_indev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lv_core/lv_indev.c b/src/lv_core/lv_indev.c index 0f2381144..f29c7406e 100644 --- a/src/lv_core/lv_indev.c +++ b/src/lv_core/lv_indev.c @@ -1118,6 +1118,7 @@ static void indev_drag(lv_indev_proc_t * state) /*If the object didn't moved then clear the invalidated areas*/ if(drag_obj->coords.x1 == prev_x && drag_obj->coords.y1 == prev_y) { + state->types.pointer.drag_in_prog = 0; /*In a special case if the object is moved on a page and * the scrollable has fit == true and the object is dragged of the page then * while its coordinate is not changing only the parent's size is reduced */