summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2019-11-21 15:30:21 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-11-21 15:30:21 +0900
commita46bddc490191b839e3773c854c843fb92f08db2 (patch)
treefbde79f435f40cc1b2a7ea4c25a05122a1ba8a58
parent53af539f2781deb08f4d8e5bc983e743e92abb36 (diff)
downloadefl-a46bddc490191b839e3773c854c843fb92f08db2.tar.gz
efl_canvas_object_animation: check if animation stops during animation
It is checked if animation stopped in the animation_progress,updated callback by user.
-rw-r--r--src/lib/evas/canvas/efl_canvas_object_animation.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_object_animation.c b/src/lib/evas/canvas/efl_canvas_object_animation.c
index b86912db60..67dec4a080 100644
--- a/src/lib/evas/canvas/efl_canvas_object_animation.c
+++ b/src/lib/evas/canvas/efl_canvas_object_animation.c
@@ -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)))