summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-22 15:57:39 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-07-22 17:39:14 +0200
commit47423ab72064309d5a8e0824ab9f3761e11666e8 (patch)
treef40d9cd5c0a429f8c75abe813bdcf0a4e7889af7
parenta26c787e2bb5a673981b03e17b832972e2de1a29 (diff)
efl_ui/scroll_manager: mimic feel of legacy scroller
Summary: previously this used a hard linear scroll with a fixed animation time for mouse wheel events, resulting in an unnatural scroll feel due to abrupt animation termination using the decelerate interpolator improves this, and we should be using the config to determine animation speed Depends on D9347 Reviewers: bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9354
-rw-r--r--src/lib/elementary/efl_ui_scroll_manager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_scroll_manager.c b/src/lib/elementary/efl_ui_scroll_manager.c
index 83794319bd..63654f3eba 100644
--- a/src/lib/elementary/efl_ui_scroll_manager.c
+++ b/src/lib/elementary/efl_ui_scroll_manager.c
@@ -756,7 +756,9 @@ _scroll_wheel_post_event_go(Efl_Ui_Scroll_Manager_Data *sd, int x, int y)
756 else 756 else
757 { 757 {
758 cur = efl_ui_pan_position_get(sd->pan_obj); 758 cur = efl_ui_pan_position_get(sd->pan_obj);
759 _scroll_manager_scrollto_animator_add(sd, cur.x, cur.y, x, y, 0.5, 0.5, INTERP_LINEAR); 759 _scroll_manager_scrollto_animator_add(sd, cur.x, cur.y, x, y,
760 _elm_config->bring_in_scroll_friction,
761 _elm_config->bring_in_scroll_friction, INTERP_DECEL);
760 } 762 }
761} 763}
762 764