tests/elm: fix drag_around helper to handle negative angles

oops

Differential Revision: https://phab.enlightenment.org/D11388
This commit is contained in:
Mike Blumenkrantz 2020-02-20 13:16:51 -05:00 committed by Marcel Hollerbach
parent 613cd9f812
commit 7f6dfbac80
1 changed files with 1 additions and 1 deletions

View File

@ -731,7 +731,7 @@ drag_object_around(Eo *obj, int cx, int cy, int radius, int degrees)
{
Evas *e = evas_object_evas_get(obj);
/* clamp num mouse moves to a vaguely sane value */
int i, num = MIN(degrees, DRAG_OBJECT_AROUND_NUM_MOVES);
int i, num = MIN(abs(degrees), DRAG_OBJECT_AROUND_NUM_MOVES);
int last_x = round(cx + radius);
int last_y = round(cy);
/* start at 0 degrees */