From 17acee774f98f6824ef8eba56de83e9bfc438d05 Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Thu, 3 Sep 2015 21:26:50 +0900 Subject: [PATCH] toolbar: Release the pressed item when mouse move event is handled by scroller. @tizen_fix Change-Id: I00929d6c836e9678e073013fd69c97b086db9197 Signed-off-by: Youngbok Shin --- src/lib/elementary/elm_toolbar.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/lib/elementary/elm_toolbar.c b/src/lib/elementary/elm_toolbar.c index 47d1704..40b7873 100644 --- a/src/lib/elementary/elm_toolbar.c +++ b/src/lib/elementary/elm_toolbar.c @@ -2215,6 +2215,19 @@ _mouse_move_cb(Elm_Toolbar_Item_Data *it, Evas_Coord x, y, w, h; ELM_TOOLBAR_DATA_GET(WIDGET(it), sd); + + // TIZEN_ONLY(20150903): Release the pressed item when mouse move event is handled by scroller. + if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) + { + sd->mouse_down = EINA_FALSE; + ELM_SAFE_FREE(sd->long_timer, ecore_timer_del); + + elm_layout_signal_emit(VIEW(it), "elm,action,unpressed", "elm"); + + return; + } + // + evas_object_geometry_get(VIEW(it), &x, &y, &w, &h); if ((x > ev->cur.canvas.x) || (ev->cur.canvas.x > x + w) || -- 2.7.4