toolbar: Release the pressed item when mouse move event is handled by scroller. 30/84430/1
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 3 Sep 2015 12:26:50 +0000 (21:26 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Thu, 18 Aug 2016 12:41:49 +0000 (21:41 +0900)
@tizen_fix

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

index 7f9c6f1..258cf86 100644 (file)
@@ -2268,6 +2268,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) ||