forked from enlightenment/efl
animation_view: fix a regression bug by ad040eec2e
The initial progress must be reverted in stop status. otherwise rewind animation progress will be courrpted.
This commit is contained in:
parent
d58ca566bb
commit
b75cb6ce80
|
@ -503,11 +503,11 @@ _efl_ui_animation_view_play_back(Eo *obj, Efl_Ui_Animation_View_Data *pd)
|
|||
if (!efl_file_loaded_get(obj)) 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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue