summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2020-01-02 16:57:39 +0900
committerHermet Park <hermetpark@gmail.com>2020-01-02 16:57:39 +0900
commit3e5bdd2d15391691abe7b6df7c5f9579b5886fdb (patch)
tree651ba3ac8bdc5dd20952452cf737f299ceaac095
parent991ca66681b16db05ba1dbfeff322d2bcc9d93b6 (diff)
downloadefl-3e5bdd2d15391691abe7b6df7c5f9579b5886fdb.tar.gz
elm_animation_view: Fix play/play_back behavior
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
-rw-r--r--src/lib/elementary/efl_ui_vg_animation_eo.legacy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_vg_animation_eo.legacy.c b/src/lib/elementary/efl_ui_vg_animation_eo.legacy.c
index eca7abf616..ad99d1b8a9 100644
--- a/src/lib/elementary/efl_ui_vg_animation_eo.legacy.c
+++ b/src/lib/elementary/efl_ui_vg_animation_eo.legacy.c
@@ -70,6 +70,8 @@ elm_animation_view_frame_get(const Efl_Ui_Vg_Animation *obj)
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);
}
@@ -77,7 +79,7 @@ EAPI Eina_Bool
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);
}