_e_gesture_tap_cancel();
}
- _e_gesture_util_rect_get(taps->enabled_finger, ¤t_rect.x1, ¤t_rect.y1, ¤t_rect.x2, ¤t_rect.y2);
+ // only checking touch moves within moving range while all fingers are still pressed.
+ if (gesture->gesture_events.num_pressed == taps->enabled_finger)
+ {
+ _e_gesture_util_rect_get(taps->enabled_finger, ¤t_rect.x1, ¤t_rect.y1, ¤t_rect.x2, ¤t_rect.y2);
- xx1 = taps->base_rect.x1 - current_rect.x1;
- yy1 = taps->base_rect.y1 - current_rect.y1;
- xx2 = taps->base_rect.x2 - current_rect.x2;
- yy2 = taps->base_rect.y2 - current_rect.y2;
+ xx1 = taps->base_rect.x1 - current_rect.x1;
+ yy1 = taps->base_rect.y1 - current_rect.y1;
+ xx2 = taps->base_rect.x2 - current_rect.x2;
+ yy2 = taps->base_rect.y2 - current_rect.y2;
- if (ABS(xx1) > conf->tap.moving_range ||
- ABS(yy1) > conf->tap.moving_range ||
- ABS(xx2) > conf->tap.moving_range ||
- ABS(yy2) > conf->tap.moving_range)
- {
- GTWRN("%d finger moving too large diff: (%d, %d)(%d, %d)\n", ev->multi.device, xx1, yy1, xx2, yy2);
- _e_gesture_tap_cancel();
+ if (ABS(xx1) > conf->tap.moving_range ||
+ ABS(yy1) > conf->tap.moving_range ||
+ ABS(xx2) > conf->tap.moving_range ||
+ ABS(yy2) > conf->tap.moving_range)
+ {
+ GTWRN("Tap Move. (id:%d) moving too large (%d, %d)(%d, %d) range:%d\n", ev->multi.device, xx1, yy1, xx2, yy2, conf->tap.moving_range);
+ _e_gesture_tap_cancel();
+ }
}
}