[e-mod-tizen-screen-reader] Abort flick gesture when mouse up comes with (0,0) coordinate 93/214693/1
authorPrasoon Singh <prasoon.16@samsung.com>
Wed, 25 Sep 2019 09:41:58 +0000 (15:11 +0530)
committerPrasoon Singh <prasoon.16@samsung.com>
Wed, 25 Sep 2019 09:41:58 +0000 (15:11 +0530)
In touch bezel devices when down is generated and up happens on touch bezel, mouse up with (0,0)
cordinate is sent. Due to which length threshold is fulfilled and flick gesture comes.

Change-Id: I0f634c052a4a0f394dcf92243f23e8e75f69f46d
Signed-off-by: Prasoon Singh <prasoon.16@samsung.com>
src/e_screen_reader_gestures.c

index 46e76c9..314b080 100644 (file)
@@ -494,6 +494,12 @@ _flick_gesture_mouse_up(Ecore_Event_Mouse_Button *ev, Cover *cov)
              if (cov->flick_gesture.finger[i] == ev->multi.device)
                break;
           }
+        if (ev->x == 0 && ev->y == 0)
+          {
+             ERROR("Gesture aborted.");
+             cov->flick_gesture.state = GESTURE_ABORTED;
+             goto end;
+          }
         if (i == cov->flick_gesture.n_fingers)
           {
              DEBUG("Finger id not recognized. Gesture aborted.");