summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elementary/elm_gesture_layer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_gesture_layer.c b/src/lib/elementary/elm_gesture_layer.c
index 38af0fdf3a..3a29734216 100644
--- a/src/lib/elementary/elm_gesture_layer.c
+++ b/src/lib/elementary/elm_gesture_layer.c
@@ -2530,8 +2530,8 @@ _momentum_test(Evas_Object *obj,
2530 st->line_end.y = pe_local.y; 2530 st->line_end.y = pe_local.y;
2531 st->t_end = pe_local.timestamp; 2531 st->t_end = pe_local.timestamp;
2532 2532
2533 if ((abs(st->info.mx) > ELM_GESTURE_MINIMUM_MOMENTUM) || 2533 if ((fabs(st->info.mx) > ELM_GESTURE_MINIMUM_MOMENTUM) ||
2534 (abs(st->info.my) > ELM_GESTURE_MINIMUM_MOMENTUM)) 2534 (fabs(st->info.my) > ELM_GESTURE_MINIMUM_MOMENTUM))
2535 state_to_report = ELM_GESTURE_STATE_END; 2535 state_to_report = ELM_GESTURE_STATE_END;
2536 else 2536 else
2537 state_to_report = ELM_GESTURE_STATE_ABORT; 2537 state_to_report = ELM_GESTURE_STATE_ABORT;