efl/src/examples/elementary
Wonki Kim 6409cfa41b 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
2018-08-29 15:58:10 +09:00
..
performance evas3d: use a type setter function with finalize instead of a custom constructor 2018-02-12 16:47:41 -05:00
sphere_hunter Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
.gitignore efl_ui_list : introduce new list widget for simple usage 2018-04-28 13:41:41 +09:00
actionslider_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
bg_cxx_example_01.cc examples: Show off usage of "background" part 2018-01-16 22:04:55 +09:00
bg_cxx_example_02.cc Efl.Gfx.Image* (From Efl.Image*) 2018-04-24 09:03:40 -07:00
bg_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
bg_example_01.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
bg_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
bg_example_02.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
bg_example_03.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
box_cxx_example_02.cc cxx: Some code style in examples 2017-12-05 10:09:58 +09:00
box_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
box_js_example_01.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
box_js_example_02.js js: Fix some js examples usage of orient API 2017-08-23 15:24:37 +09:00
bubble_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
button_cxx_example_00.cc cxx: Add define EFL_CXXPERIMENTAL for testing 2017-12-05 10:14:03 +09:00
button_cxx_example_01.cc Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
button_example_00.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
button_example_00.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
button_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
button_example_01.js efl: Split Efl.Container and Efl.Content 2017-11-20 19:02:09 +09:00
calendar_cxx_example_01.cc cxx: Fix some examples, disable or remove others 2017-11-07 09:57:24 +09:00
calendar_cxx_example_02.cc cxx: Add implicit conversion to Eo* pointer 2017-12-05 10:14:03 +09:00
calendar_cxx_example_03.cc cxx: Fix some examples, disable or remove others 2017-11-07 09:57:24 +09:00
calendar_cxx_example_04.cc examples: calendar_cxx: comment out unused variables 2018-01-15 10:40:39 +01:00
calendar_cxx_example_05.cc examples: cxx: avoid tick in warning message 2018-01-15 10:38:36 +01:00
calendar_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
calendar_example_01.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
calendar_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
calendar_example_02.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
calendar_example_03.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
calendar_example_03.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
calendar_example_04.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
calendar_example_04.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
calendar_example_05.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
calendar_example_05.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
calendar_example_06.c elm example : on some OS (windows...) struct tm has 9 fields and not 11. Fix warning. 2018-01-08 21:10:22 +09:00
check_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
clock_cxx_example.cc cxx: Fix example for GCC 2017-11-10 12:20:27 +09:00
clock_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
clock_example.js elm: Fix invalid uses of Efl.Orientation 2017-09-19 18:53:35 +09:00
codegen_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
codegen_example.edc
colorselector_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
combobox_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
conformant_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
conformant_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
ctxpopup_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
datetime_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
dayselector_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
dict.txt
diskselector_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
diskselector_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
efl_thread_1.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
efl_thread_2.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
efl_thread_3.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
efl_thread_4.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
efl_thread_5.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
efl_thread_6.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
efl_ui_list_example_1.c efl_ui_list : introduce new list widget for simple usage 2018-04-28 13:41:41 +09:00
efl_ui_scroller_example.c Revert "efl_add_ref - fis to use efl_add properly with a parent." 2018-05-24 16:02:17 -07:00
efl_ui_slider_mono.cs efl_mono: Update tests and examples after rename 2018-05-03 18:04:41 -03:00
efl_ui_unit_converter.cs efl_mono: Fixes after efl_part/del changes. 2018-05-24 16:02:19 -07:00
efl_ui_view_list_example.edc efl.ui.view_list : update example text/content name on legacy to efl 2018-04-30 19:25:06 +09:00
efl_ui_view_list_example_1.c efl: fix some warnings in examples 2018-07-20 10:36:38 -04:00
efl_ui_view_list_example_2.c Efl.Ui.Layout.Factory: added missing factory_model_connect 2018-08-01 19:37:37 -03:00
efl_ui_view_list_example_3.c examples: fix efl_model parent loop add 2018-06-07 19:15:50 -03:00
entry_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
evas3d_map_example.c evas3d: use a type setter function with finalize instead of a custom constructor 2018-02-12 16:47:41 -05:00
evas3d_map_example.edc
evas3d_object_on_button_example.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas3d_scene_on_button_example.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
filemvc.c Revert "efl_add_ref - fis to use efl_add properly with a parent." 2018-05-24 16:02:17 -07:00
fileselector_button_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
fileselector_entry_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
fileselector_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
fileviewlist.c examples: fix efl_model parent loop add 2018-06-07 19:15:50 -03:00
flip_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
flipselector_example.c examples: use printf instead of fprintf(stdout, ...) 2017-05-08 15:14:29 -07:00
frame_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
general_funcs_example.c examples: use printf instead of fprintf(stdout, ...) 2017-05-08 15:14:29 -07:00
gengrid_example.c example: print format correction to avoid warning. 2017-10-17 17:31:38 +09:00
genlist_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
genlist_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
genlist_example_03.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
genlist_example_04.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
genlist_example_05.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
glview_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
hover_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
hoversel_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
icon_cxx_example_01.cc Efl.Gfx.Image* (From Efl.Image*) 2018-04-24 09:03:40 -07:00
icon_example_01.c examples: elm_icon: remove no-op deprecated function call for icon lookup 2017-07-14 14:06:34 +02:00
icon_example_01.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
image_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
index_example_01.c examples: use printf instead of fprintf(stdout, ...) 2017-05-08 15:14:29 -07:00
index_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
inwin_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
label_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
label_example_02.c examples: elementary: add more examples to build 2018-08-22 18:37:44 +09:00
label_example_03.c examples: elementary: add more examples to build 2018-08-22 18:37:44 +09:00
layout_example.edc
layout_example.js efl: Split Efl.Container and Efl.Content 2017-11-20 19:02:09 +09:00
layout_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
layout_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
layout_example_03.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
layout_model_connect.c examples: fix efl_model parent loop add 2018-06-07 19:15:50 -03:00
list_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
list_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
list_example_03.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
location_example_01.c example: improve location example, fix crash 2017-10-24 15:44:16 +09:00
map_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
map_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
map_example_03.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
mapbuf_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
menu_cxx_example_01.cc examples: cxx: avoid tick in warning message 2018-01-15 10:38:36 +01:00
menu_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
menu_example_01.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
naviframe_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
notify_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
panel_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
panes_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
photocam_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
popup_cxx_example.cc cxx: Fix examples after part changes 2018-05-24 16:02:19 -07:00
popup_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
popup_example_01.js efl: Split Efl.Container and Efl.Content 2017-11-20 19:02:09 +09:00
popup_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
popup_example_03.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
prefs_data_example.c
prefs_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
prefs_example_01.epc
prefs_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
prefs_example_02.epc
prefs_example_03.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
prefs_example_03.edc
prefs_example_03.epc
progressbar_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
radio_cxx_example_01.cc eolian_cxx: Fix cxx build after evt changes 2017-12-19 14:25:08 +09:00
radio_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
radio_example_01.js efl: Split Efl.Container and Efl.Content 2017-11-20 19:02:09 +09:00
radio_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
scroller_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
scroller_example_02.c scroller: refactory a momentum scroll animator 2018-08-29 15:58:10 +09:00
segment_control_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
separator_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
sky_01.jpg examples: Add popup cxx example 2017-11-28 17:15:42 +09:00
slider_cxx_example.cc cxx: Fix examples after part changes 2018-05-24 16:02:19 -07:00
slider_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
slider_example.js efl: Split Efl.Container and Efl.Content 2017-11-20 19:02:09 +09:00
slideshow_example.c examples: use printf instead of fprintf(stdout, ...) 2017-05-08 15:14:29 -07:00
spinner_cxx_example.cc cxx: Disable spinner example (broken) 2017-11-20 20:31:07 +09:00
spinner_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
spinner_example.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
table_cxx_example_01.cc examples: Fix compilation (cxx bg & table) 2017-12-19 14:36:54 +09:00
table_cxx_example_02.cc examples: Fix compilation (cxx bg & table) 2017-12-19 14:36:54 +09:00
table_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
table_example_01.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
table_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
table_example_02.js
theme_example.edc examples: Fix button theme 2016-08-08 20:41:51 +09:00
theme_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
theme_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
thumb_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
thumb_example_01.js js: Update after many elm/efl.ui changes 2017-06-19 17:36:41 -03:00
toolbar_cxx_example_01.cc win: Rename specific APIs to avoid clashes 2017-11-16 19:11:51 +09:00
toolbar_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
toolbar_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
toolbar_example_03.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
track_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
transit_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
transit_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
transit_example_03.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
transit_example_04.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
twitter_example_01.edc
twitter_example_01.js efl: Split Efl.Container and Efl.Content 2017-11-20 19:02:09 +09:00
web_example_01.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
web_example_02.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00
win_example.c examples: Fix most trivial warnings 2017-04-20 17:44:57 +09:00