From 59432bad345f8339b0e9ec6db5a567c32603a0ec Mon Sep 17 00:00:00 2001 From: jeon Date: Fri, 28 Dec 2018 11:13:36 +0900 Subject: [PATCH] edge_swipe: fix some bugs to recognize edge_swipe with multi fingers Change-Id: If5c965978e9d537406589f3e43ea39947c79a7fc --- src/e_mod_gesture_events.c | 2 ++ src/e_mod_main.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/e_mod_gesture_events.c b/src/e_mod_gesture_events.c index 8b7977e..b9e8ebe 100644 --- a/src/e_mod_gesture_events.c +++ b/src/e_mod_gesture_events.c @@ -528,6 +528,8 @@ _e_gesture_process_edge_swipe_down(Ecore_Event_Mouse_Button *ev) } else { + edge_swipes->base.fingers[idx].start.x = ev->x; + edge_swipes->base.fingers[idx].start.y = ev->y; edge_swipes->base.enabled_finger &= ~(1 << (gesture->gesture_events.num_pressed - 1)); if (edge_swipes->start_timer == NULL) { diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 49dbdab..9df9f28 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -502,6 +502,8 @@ _e_gesture_grab_edge_swipe(struct wl_client *client, if (gev->event_keep) gesture->event_state = E_GESTURE_EVENT_STATE_KEEP; gev->edge_swipes.base.enabled_edge |= (1 << edge); + gesture->gesture_filter = E_GESTURE_TYPE_ALL & ~gesture->grabbed_gesture; + ret = TIZEN_GESTURE_ERROR_NONE; } else -- 2.7.4