forked from enlightenment/efl
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
This commit is contained in:
parent
a26c787e2b
commit
47423ab720
|
@ -756,7 +756,9 @@ _scroll_wheel_post_event_go(Efl_Ui_Scroll_Manager_Data *sd, int x, int y)
|
|||
else
|
||||
{
|
||||
cur = efl_ui_pan_position_get(sd->pan_obj);
|
||||
_scroll_manager_scrollto_animator_add(sd, cur.x, cur.y, x, y, 0.5, 0.5, INTERP_LINEAR);
|
||||
_scroll_manager_scrollto_animator_add(sd, cur.x, cur.y, x, y,
|
||||
_elm_config->bring_in_scroll_friction,
|
||||
_elm_config->bring_in_scroll_friction, INTERP_DECEL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue