From: Seoyeon Kim Date: Wed, 28 Sep 2022 04:39:13 +0000 (+0900) Subject: Fix to set the correct gesture position in multi-touch X-Git-Tag: accepted/tizen/6.5/unified/20221020.114745~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8719e9682204c4e68edfa3877bf828fd1768b4e7;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-screen-reader.git Fix to set the correct gesture position in multi-touch - When user tries to zoom out/in an object, sometimes the object gets bigger than the desired zoom behavior. Change-Id: Iafef71c96c03f7c1aba69463eec633ae8a732865 Signed-off-by: Seoyeon Kim --- diff --git a/src/e_screen_reader_gestures.c b/src/e_screen_reader_gestures.c index 38cdadd..127ee71 100644 --- a/src/e_screen_reader_gestures.c +++ b/src/e_screen_reader_gestures.c @@ -627,6 +627,11 @@ start_scroll(Cover *cov) DBG("NOT ENOUGH MEMORY"); return ; } + + cov->flick_gesture.ev_first_down->multi.x = (double) cov->hover_gesture.x[0]; + cov->flick_gesture.ev_first_down->multi.y = (double) cov->hover_gesture.y[0]; + + memcpy(ev_down, cov->flick_gesture.ev_first_down, sizeof(Ecore_Event_Mouse_Button)); if (g_context->object_needs_scroll_from_x != -1 && g_context->object_needs_scroll_from_y != -1) @@ -653,6 +658,10 @@ start_scroll(Cover *cov) ev_down->y = cov->hover_gesture.y[1]; ev_down->multi.device = 1; ev_down->multi.radius += MAGIC_NUMBER; + + ev_down->multi.x = (double) cov->hover_gesture.x[1]; + ev_down->multi.y = (double) cov->hover_gesture.y[1]; + _emit_mouse_move_event(ev_down); ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, ev_down, NULL, NULL); }