[4.0][Pulse][e-mod-tizen-screen-reader] Not invoke gesture callback on zoom mode. 12/199512/1 accepted/tizen/unified/20190214.060605 submit/tizen/20190213.001307 submit/tizen/20190213.060634 submit/tizen/20190213.062652
authorch.jeong47 <ch.jeong47@samsung.com>
Wed, 30 Jan 2019 08:08:31 +0000 (17:08 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Tue, 12 Feb 2019 08:15:38 +0000 (17:15 +0900)
[Model] Common
[BinType] AP
[Customer] OPEN
[Issue#] Not invoke gesture callback on zoom mode.
[Request] UX
[Occurrence Version] N/A
[Problem] Not invoke gesture callback on zoom mode.
[Cause & Measure] Not invoke gesture callback on zoom mode.
[Team] UIFW
[Developer] chulheon jeong(ch.jeong47@samsung.com)
[Solution company] Samsung
[Change Type] fix

Change-Id: I549a655a141243d4300a118f34c6266bc1ca989d
Signed-off-by: ch.jeong47 <ch.jeong47@samsung.com>
Signed-off-by: JunsuChoi <jsuya.choi@samsung.com>
src/e_mod_main.c

index 282340c..8cc2941 100644 (file)
@@ -216,6 +216,23 @@ int _e_mod_atspi_dbus_broadcast(Gesture_Info *gi)
    if (!conn) return -1;
    if (!iface) return -1;
 
+//PRODUCT_ONLY(30JAN2019): disable gesture on Zoom mode.
+   E_Zone *zone = NULL;
+   E_Desk *desk = NULL;
+   double zoomx = 0.0, zoomy = 0.0;
+   int cx = 0, cy = 0;
+
+   zone = e_zone_current_get();
+   desk = e_desk_current_get(zone);
+
+   e_desk_zoom_get(desk, &zoomx, &zoomy, &cx, &cy);
+   if (zoomx > 1.0 || zoomy > 1.0)
+    {
+       INFO("The screen is zoomed in!");
+       return -1;
+    }
+//
+
    eldbus_service_signal_emit(iface, GESTURE_DETECTED_SIGNAL, (int)gi->type, gi->x_beg, gi->y_beg,
                               gi->x_end, gi->y_end, gi->state, gi->event_time);