From 8719e9682204c4e68edfa3877bf828fd1768b4e7 Mon Sep 17 00:00:00 2001 From: Seoyeon Kim Date: Wed, 28 Sep 2022 13:39:13 +0900 Subject: [PATCH] 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 --- src/e_screen_reader_gestures.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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); } -- 2.7.4