From 35586c3a23aa591a3af784e1f3918ef8fa27c6f5 Mon Sep 17 00:00:00 2001 From: Prasoon Singh Date: Mon, 24 Feb 2020 11:01:39 +0530 Subject: [PATCH] [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) --- src/e_screen_reader_gestures.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- 2.7.4