Summary:
In elm_animation_view(legacy), play means forward and play_back backward.
So change the sign of the speed value for control.
Test Plan: N/A
Reviewers: Hermet, smohanty, kimcinoo
Reviewed By: Hermet
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10995
EAPI Eina_Bool
elm_animation_view_play(Efl_Ui_Vg_Animation *obj)
{
+ double speed = efl_player_playback_speed_get(obj);
+ efl_player_playback_speed_set(obj, speed < 0 ? speed * -1 : speed);
return efl_player_playing_set(obj, EINA_TRUE);
}
elm_animation_view_play_back(Efl_Ui_Vg_Animation *obj)
{
double speed = efl_player_playback_speed_get(obj);
- efl_player_playback_speed_set(obj, speed < 0 ? speed * -1 : speed);
+ efl_player_playback_speed_set(obj, speed > 0 ? speed * -1 : speed);
return efl_player_playing_set(obj, EINA_TRUE);
}