summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/evas/canvas/efl_canvas_animation_player.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_animation_player.c b/src/lib/evas/canvas/efl_canvas_animation_player.c
index 677443a5f5..063f932d49 100644
--- a/src/lib/evas/canvas/efl_canvas_animation_player.c
+++ b/src/lib/evas/canvas/efl_canvas_animation_player.c
@@ -84,8 +84,12 @@ _animator_cb(void *data)
84 duration = efl_animation_duration_get(anim); 84 duration = efl_animation_duration_get(anim);
85 elapsed_time = pd->time.current - pd->time.prev; 85 elapsed_time = pd->time.current - pd->time.prev;
86 vector = elapsed_time / duration; 86 vector = elapsed_time / duration;
87 87
88 if (vector <= DBL_EPSILON) 88 /* When animation player starts, _animator_cb() is called immediately so
89 * both elapsed time and progress are 0.0.
90 * Since it is the beginning of the animation if progress is 0.0, the
91 * following codes for animation should be executed. */
92 if ((vector <= DBL_EPSILON) && (pd->progress != 0.0))
89 return ECORE_CALLBACK_RENEW; // There is no update. 93 return ECORE_CALLBACK_RENEW; // There is no update.
90 94
91 //TODO: check negative play_speed. 95 //TODO: check negative play_speed.