[e-mod-tizen-screen-reader] Make opening QP easier by emiting events when touched... 08/225708/2 accepted/tizen/5.5/unified/20200316.155258 submit/tizen_5.5/20200303.215650 submit/tizen_5.5/20200313.024520 submit/tizen_5.5/20200315.214302
authorPrasoon Singh <prasoon.16@samsung.com>
Mon, 24 Feb 2020 05:31:39 +0000 (11:01 +0530)
committerPrasoon Singh <prasoon.16@samsung.com>
Mon, 2 Mar 2020 06:14:38 +0000 (06:14 +0000)
QP area.

For easier opening of QP, needs to emit mouse move events directly. Only
checking in horizontal direction is not enough, as second finger always out of QP
area. So, checking if y cordinate of fingers if lying in QP area in vertical
direction makes more sense.

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

index 719419a..cede02e 100644 (file)
@@ -837,6 +837,13 @@ static Eina_Bool
 _on_screen_edge(Cover *cov)
 {
    E_Accessibility_Conf_Edd* conf = e_accessibility_get_configuration();
+
+   if (((cov->hover_gesture.y[0] < cov->zone.y + conf->gesture.quickpanel_area_size)
+         && (cov->hover_gesture.y[1] < cov->zone.y + conf->gesture.quickpanel_area_size))
+      || ((cov->hover_gesture.y[0] > cov->zone.y + cov->zone.h - conf->gesture.quickpanel_area_size)
+         && (cov->hover_gesture.y[1] > cov->zone.y + cov->zone.h - conf->gesture.quickpanel_area_size)))
+      return EINA_TRUE;
+
    if (((cov->hover_gesture.x[0] < cov->zone.x + conf->gesture.quickpanel_area_size)
          && (cov->hover_gesture.x[1] < cov->zone.x + conf->gesture.quickpanel_area_size))
       || ((cov->hover_gesture.x[0] > cov->zone.x + cov->zone.w - conf->gesture.quickpanel_area_size)