_e_gesture_pan_cancel(void)
{
E_Gesture_Event_Pan *pans = &gesture->gesture_events.pans;
+ Coords cur_point = {0,};
if (pans->start_timer)
{
}
if (pans->state == E_GESTURE_PANPINCH_STATE_MOVING)
- _e_gesture_pan_send(E_GESTURE_MODE_END, pans->num_pan_fingers, 0, 0,
- pans->fingers[pans->num_pan_fingers].res,
- pans->fingers[pans->num_pan_fingers].client);
+ {
+ _e_gesture_util_center_axis_get(pans->num_pan_fingers, &cur_point.x, &cur_point.y);
+ _e_gesture_pan_send(E_GESTURE_MODE_END, pans->num_pan_fingers, cur_point.x, cur_point.y,
+ pans->fingers[pans->num_pan_fingers].res,
+ pans->fingers[pans->num_pan_fingers].client);
+ }
gesture->gesture_filter |= E_GESTURE_TYPE_PAN;
pans->state = E_GESTURE_PANPINCH_STATE_DONE;
if (!_e_gesture_process_touch_check(ev->dev, ev->multi.device))
return E_GESTURE_EVENT_STATE_PROPAGATE;
- gesture->gesture_events.base_point[ev->multi.device + 1].pressed = EINA_FALSE;
- gesture->gesture_events.base_point[ev->multi.device + 1].axis.x = 0;
- gesture->gesture_events.base_point[ev->multi.device + 1].axis.y = 0;
+ gesture->gesture_events.base_point[ev->multi.device + 1].axis.x = ev->x;
+ gesture->gesture_events.base_point[ev->multi.device + 1].axis.y = ev->y;
if (!(gesture->gesture_filter & E_GESTURE_TYPE_EDGE_SWIPE))
{
_e_gesture_process_tap_up(ev);
}
+ gesture->gesture_events.base_point[ev->multi.device + 1].pressed = EINA_FALSE;
+ gesture->gesture_events.base_point[ev->multi.device + 1].axis.x = 0;
+ gesture->gesture_events.base_point[ev->multi.device + 1].axis.y = 0;
+
if (gesture->gesture_events.recognized_gesture)
{
if (gesture->gesture_events.num_pressed == 0)