From 4dd292c1ffdfb7a640889d207574776cbf960c33 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 2 May 2019 16:18:25 +0900 Subject: [PATCH] animation_view: fix a regression bug by ad040eec2e60b092572f8bec5edb6ee73e1eb834 The initial progress must be reverted in stop status. otherwise rewind animation progress will be courrpted. Change-Id: I8f6b48cef1ce38e42c7c1eff60f8a3e3a7909d66 --- src/lib/elementary/efl_ui_animation_view.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/elementary/efl_ui_animation_view.c b/src/lib/elementary/efl_ui_animation_view.c index bbb6b7d..cdf10af 100644 --- a/src/lib/elementary/efl_ui_animation_view.c +++ b/src/lib/elementary/efl_ui_animation_view.c @@ -496,11 +496,11 @@ _efl_ui_animation_view_play_back(Eo *obj EINA_UNUSED, Efl_Ui_Animation_View_Data if (!pd->file) return EINA_FALSE; if (!pd->transit && !_ready_play(pd)) return EINA_FALSE; - if (pd->progress == 0) - pd->progress = 1.0; - if (pd->state == EFL_UI_ANIMATION_VIEW_STATE_STOP) - _transit_go_facade(pd); + { + if (pd->progress == 0) pd->progress = 1.0; + _transit_go_facade(pd); + } else if (rewind) elm_transit_progress_value_set(pd->transit, 1 - pd->progress); -- 2.7.4