summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--legacy/elementary/src/lib/elm_gesture_layer.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/legacy/elementary/src/lib/elm_gesture_layer.c b/legacy/elementary/src/lib/elm_gesture_layer.c
index bff601b320..b45b0c90b7 100644
--- a/legacy/elementary/src/lib/elm_gesture_layer.c
+++ b/legacy/elementary/src/lib/elm_gesture_layer.c
@@ -3011,8 +3011,18 @@ void continues_gestures_restart(void *data, Eina_Bool states_reset)
3011 3011
3012 /* Run through events to restart gestures */ 3012 /* Run through events to restart gestures */
3013 Gesture_Info *g; 3013 Gesture_Info *g;
3014 Eina_Bool n_lines, n_flicks, zoom, rotate; 3014 Eina_Bool n_momentum, n_lines, n_flicks, zoom, rotate;
3015 /* We turn-on flag for finished, aborted, not-started gestures */ 3015 /* We turn-on flag for finished, aborted, not-started gestures */
3016 g = wd->gesture[ELM_GESTURE_MOMENTUM];
3017 n_momentum = (g) ? ((states_reset) | ((g->state != ELM_GESTURE_STATE_START)
3018 && (g->state != ELM_GESTURE_STATE_MOVE))) : EINA_FALSE;
3019 if (n_momentum)
3020 {
3021 _momentum_test_reset(wd->gesture[ELM_GESTURE_MOMENTUM]);
3022 _set_state(g, ELM_GESTURE_STATE_UNDEFINED, NULL, EINA_FALSE);
3023 SET_TEST_BIT(g);
3024 }
3025
3016 g = wd->gesture[ELM_GESTURE_N_LINES]; 3026 g = wd->gesture[ELM_GESTURE_N_LINES];
3017 n_lines = (g) ? ((states_reset) | ((g->state != ELM_GESTURE_STATE_START) 3027 n_lines = (g) ? ((states_reset) | ((g->state != ELM_GESTURE_STATE_START)
3018 && (g->state != ELM_GESTURE_STATE_MOVE))) : EINA_FALSE; 3028 && (g->state != ELM_GESTURE_STATE_MOVE))) : EINA_FALSE;