From: Prasoon Singh Date: Mon, 24 Feb 2020 05:31:39 +0000 (+0530) Subject: [e-mod-tizen-screen-reader] Make opening QP easier by emiting events when touched... X-Git-Tag: accepted/tizen/unified/20200315.214746^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F99%2F226399%2F1;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-screen-reader.git [e-mod-tizen-screen-reader] Make opening QP easier by emiting events when touched upon 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 (cherry picked from commit b5276ad51c0c457f998976b47fba667f9a0cab02) --- diff --git a/src/e_screen_reader_gestures.c b/src/e_screen_reader_gestures.c index 719419a..cede02e 100644 --- a/src/e_screen_reader_gestures.c +++ b/src/e_screen_reader_gestures.c @@ -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)