From c05ebc075f52fd79d8976b8f0c5f601410b3314d Mon Sep 17 00:00:00 2001 From: Gabor Date: Tue, 7 Mar 2017 17:13:24 +0100 Subject: [PATCH] dispi: if a drag can not move the object (e.g. layout) still consider it as drag (reverted) --- lv_obj/lv_dispi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lv_obj/lv_dispi.c b/lv_obj/lv_dispi.c index 1dd643277..93fe2465c 100644 --- a/lv_obj/lv_dispi.c +++ b/lv_obj/lv_dispi.c @@ -220,7 +220,7 @@ static void dispi_proc_press(lv_dispi_t * dispi_p) pr_obj = dispi_search_obj(dispi_p, lv_scr_act()); } /*If there is last object but it can not be dragged also search*/ - else if(dispi_p->drag_in_prog == 0) {/*Now act_obj != NULL*/ + else if(dispi_p->drag_range_out == 0) {/*Now act_obj != NULL*/ pr_obj = dispi_search_obj(dispi_p, lv_scr_act()); } /*If a dragable object was the last then keep it*/