Do not emit 1 finger hover finished event, if drag started 19/89919/1
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 27 Sep 2016 12:20:31 +0000 (21:20 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Tue, 27 Sep 2016 12:20:31 +0000 (21:20 +0900)
Change-Id: I4cbb25a57504b78ed89026e4e251d72e80bc4d22

src/e_screen_reader_gestures.c

index 586c50d..7ee9391 100644 (file)
@@ -672,6 +672,15 @@ _on_hover_timeout(void *data)
         _hover_event_emit(cov, GESTURE_NOT_STARTED);
         cov->hover_gesture.last_emission_time = cov->event_time;
      }
+
+   if (cov->tap_n_hold_gesture_data.drag_start)
+     {
+        /*_hover_gesture_mouse_up emits GESTURE_FINISHED, if longpressed is TRUE.
+         But if the drag_start is TRUE, it is not proper to emit GESTURE_FINISHED.
+         So set longpressed to FALSE here. */
+        cov->hover_gesture.longpressed = EINA_FALSE;
+     }
+
    return EINA_FALSE;
 }