efl_canvas_object_animation: check if animation stops during animation

It is checked if animation stopped in the animation_progress,updated
callback by user.
This commit is contained in:
Jaehyun Cho 2019-11-21 15:30:21 +09:00
parent 53af539f27
commit a46bddc490
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ _animator_cb(void *data, const Efl_Event *ev EINA_UNUSED)
efl_event_callback_call(obj, EFL_CANVAS_OBJECT_ANIMATION_EVENT_ANIMATION_PROGRESS_UPDATED, &pd->in->progress);
//Check if animation stopped in animation_progress,updated callback.
if (!pd->in) return;
//Not end. Keep going.
if ((pd->in->speed < 0 && EINA_DBL_EQ(pd->in->progress, 0)) ||
(pd->in->speed > 0 && EINA_DBL_EQ(pd->in->progress, 1.0)))