summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_smart.c
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2018-08-29 15:58:10 +0900
committerHermet Park <hermetpark@gmail.com>2018-08-29 15:58:10 +0900
commit6409cfa41b19f04ef7b4247d078d626e9ec77a8f (patch)
treea728dffaca510eae41e89aa147ff5ac2df370c8d /src/lib/edje/edje_smart.c
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: https://phab.enlightenment.org/D6643
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions