path: root/data/elementary/config/standard/
diff options
authorWonki Kim <>2018-08-29 15:58:10 +0900
committerHermet Park <>2018-08-29 15:58:10 +0900
commit6409cfa41b19f04ef7b4247d078d626e9ec77a8f (patch)
treea728dffaca510eae41e89aa147ff5ac2df370c8d /data/elementary/config/standard/
parent78fb9cf124e80d85e443a6bc5afe2819ee120e1a (diff)
scroller: refactory a momentum scroll animator
Summary: this patch refactories a momentum scroll animator logics. 1. animation duration animating runs within a one second now. and if it needs more time to animate, it decrease intepolation progress by dividing some value. current logic makes sense however, it is not easy to read to know how it works. this patch modify current logic to calculate distance to move, and time to animate. 2. distance to move we can apply simple physics something like mass of pan and friction of scroller itself. but this patch apply just geometric seqeunce to calculate distance to go. it's more easy to customize behavior of scroller than current sine graph based one. 3. accelerate logic scroller sets 'extra_time' to accelerate a scroller for now. but this patch modify logic not to use it. however it uses current momenutum velocity as a bais of next momentum animating. @feature Reviewers: zmike, #reviewers, Hermet Reviewed By: #reviewers, Hermet Subscribers: Hermet, cedric, zmike Tags: #efl, #do_not_merge Differential Revision:
Diffstat (limited to '')
1 files changed, 4 insertions, 0 deletions
diff --git a/data/elementary/config/standard/ b/data/elementary/config/standard/
index 538cb368ea..4a7107ad07 100644
--- a/data/elementary/config/standard/
+++ b/data/elementary/config/standard/
@@ -9,8 +9,12 @@ group "Elm_Config" struct {
9 value "thumbscroll_momentum_threshold" double: 100.0; 9 value "thumbscroll_momentum_threshold" double: 100.0;
10 value "thumbscroll_flick_distance_tolerance" int: 1000; 10 value "thumbscroll_flick_distance_tolerance" int: 1000;
11 value "thumbscroll_friction" double: 1.0; 11 value "thumbscroll_friction" double: 1.0;
12 value "thumbscroll_momentum_animation_duration_min_limit" double: 0.3;
13 value "thumbscroll_momentum_animation_duration_max_limit" double: 1.3;
14 // will not be used
12 value "thumbscroll_min_friction" double: 1.0; 15 value "thumbscroll_min_friction" double: 1.0;
13 value "thumbscroll_friction_standard" double: 2000.0; 16 value "thumbscroll_friction_standard" double: 2000.0;
17 //
14 value "thumbscroll_bounce_friction" double: 0.5; 18 value "thumbscroll_bounce_friction" double: 0.5;
15 value "thumbscroll_bounce_enable" uchar: 0; 19 value "thumbscroll_bounce_enable" uchar: 0;
16 value "thumbscroll_acceleration_threshold" double: 500.0; 20 value "thumbscroll_acceleration_threshold" double: 500.0;