From 1cec800843ea525313d975fcfef2c10ba8a06373 Mon Sep 17 00:00:00 2001 From: SangHyeon Lee Date: Mon, 9 Jan 2017 10:05:21 +0900 Subject: [PATCH] genlist: add EVAS_EVENT_ON_HOLD flag in mouse up Change-Id: Ibb6b9371717971b825c50173eeae1339356ba57f (cherry picked from commit 6727edaed012290f39f4a7f43ba21730b34a94fa) --- src/mobile_lib/elm_genlist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mobile_lib/elm_genlist.c b/src/mobile_lib/elm_genlist.c index 552dfc1..ef4a08d 100644 --- a/src/mobile_lib/elm_genlist.c +++ b/src/mobile_lib/elm_genlist.c @@ -5208,6 +5208,8 @@ _item_mouse_up_cb(void *data, it->dragging = EINA_FALSE; evas_object_smart_callback_call(WIDGET(it), SIG_DRAG_STOP, EO_OBJ(it)); } + // When the event is cancelled, need to initialize mouse flags and timers. + if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) sd->on_hold = EINA_TRUE; _gesture_do(sd); -- 2.7.4