[e-mod-tizen-screen-reader] Make opening QP easier by emiting events when touched... 99/226399/1 accepted/tizen/unified/20200315.214746 accepted/tizen/unified/20200316.220928 submit/tizen/20200303.214157 submit/tizen/20200305.112415 submit/tizen/20200306.082439 submit/tizen/20200311.004657 submit/tizen/20200312.001621 submit/tizen/20200313.022654 submit/tizen/20200315.214142
authorPrasoon Singh <prasoon.16@samsung.com>
Mon, 24 Feb 2020 05:31:39 +0000 (11:01 +0530)
committerChun <jykeon@samsung.com>
Mon, 2 Mar 2020 08:48:30 +0000 (08:48 +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>
(cherry picked from commit b5276ad51c0c457f998976b47fba667f9a0cab02)

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)