Move a priority about the mouse event filtering logic 86/115486/2
authorJengHyun Kang <jhyuni.kang@samsung.com>
Mon, 20 Feb 2017 07:05:32 +0000 (16:05 +0900)
committerJeongHyun Kang <jhyuni.kang@samsung.com>
Mon, 20 Feb 2017 07:09:32 +0000 (23:09 -0800)
Change-Id: Ic5520a3b4b0aef0b93a4a991b5eafd65f452f572

src/e_mod_gesture_events.c

index 6627b5c..fde9512 100644 (file)
@@ -502,6 +502,10 @@ _e_gesture_process_mouse_move(void *event)
 {
    Ecore_Event_Mouse_Move *ev = event;
 
+   if (e_gesture_is_touch_device(ev->dev) == EINA_FALSE)
+     {
+        return E_GESTURE_EVENT_STATE_PROPAGATE;
+     }
    if (gesture->gesture_events.num_pressed == 0)
      {
         return gesture->event_state;
@@ -510,11 +514,6 @@ _e_gesture_process_mouse_move(void *event)
      {
         return E_GESTURE_EVENT_STATE_PROPAGATE;
      }
-   if (e_gesture_is_touch_device(ev->dev) == EINA_FALSE)
-     {
-        return E_GESTURE_EVENT_STATE_PROPAGATE;
-     }
-
    if (gesture->gesture_events.recognized_gesture)
      {
         return E_GESTURE_EVENT_STATE_IGNORE;