From 347920b2a42200a4e5561e169fab243632f11eb2 Mon Sep 17 00:00:00 2001 From: SangHyeon Lee Date: Thu, 12 Jan 2017 14:00:55 +0900 Subject: [PATCH] genlist: add reorder fallback in scrolling case Change-Id: I786b6c8e14499c74def8b40c0fa517ba2f558982 (cherry picked from commit d492b7bdf6fa8b405d8d56c14cadaf07d9450fa8) --- src/mobile_lib/elm_genlist.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/mobile_lib/elm_genlist.c b/src/mobile_lib/elm_genlist.c index ef4a08d..32f0959 100644 --- a/src/mobile_lib/elm_genlist.c +++ b/src/mobile_lib/elm_genlist.c @@ -4568,7 +4568,17 @@ _item_mouse_down_cb(void *data, Elm_Genlist_Data *sd = GL_IT(it)->wsd; Evas_Coord x, y; - if (ev->event_flags & EVAS_EVENT_FLAG_ON_SCROLL) return; + if (ev->event_flags & EVAS_EVENT_FLAG_ON_SCROLL) + { + if (sd->reorder.it) + { + elm_genlist_item_reorder_stop(EO_OBJ(sd->reorder.it)); + sd->reorder.it = NULL; + eo_do(sd->obj, elm_interface_scrollable_hold_set(EINA_FALSE)); + eo_do(sd->obj, elm_interface_scrollable_bounce_allow_set(sd->h_bounce, sd->v_bounce)); + } + return; + } if (ev->button != 1) return; // mouse down is activate only one finger -- 2.7.4