toolbar: Release the pressed item when mouse move event is handled by scroller. 72/167072/1
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 3 Sep 2015 12:26:50 +0000 (21:26 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 15 Jan 2018 08:14:56 +0000 (17:14 +0900)
@tizen_fix

Change-Id: I00929d6c836e9678e073013fd69c97b086db9197
Signed-off-by: Youngbok Shin <youngb.shin@samsung.com>
src/lib/elementary/elm_toolbar.c

index 47d1704..40b7873 100644 (file)
@@ -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) ||