Make the scroller more "weighted" (or hard-to-drag) while you drag it
authorDavide Andreoli <dave@gurumeditation.it>
Fri, 5 Nov 2010 09:31:51 +0000 (09:31 +0000)
committerDavide Andreoli <dave@gurumeditation.it>
Fri, 5 Nov 2010 09:31:51 +0000 (09:31 +0000)
commit97d44f9f4353cbefbdb066f8fd47872d8f2a0745
tree5e5ff213ef2039d62e14752195bc6e39a0ed1aa3
parent2eace529c415e00dc0b408225ebf883bc23d58d2
 Make the scroller more "weighted" (or hard-to-drag) while you drag it
 out of bounds, that is when the content is finished. In this way
 the user note that the content is at the end.

 All the others finger-scroll implementation (iphone,android) works this way ;)

 This is configurable by the 'thumbscroll_border_friction' config value,
 and by the 'ELM_THUMBSCROLL_BORDER_FRICTION' var.
 0.0 means: disable the friction
 0.5 is the default
 1.0 means: maximum friction

 I have tested this with every scroller in elm_test and seems to work
 well in all the occurence, if you see somthing strange in some scroller
 please let me know.

 DaveMDS

SVN revision: 54170
config/default/base.src
config/illume/base.src
config/standard/base.src
src/lib/elm_config.c
src/lib/elm_priv.h
src/lib/els_scroller.c