javascript - Drag scroll with inertia -


i trying create effect iphone touch screen drag scroll inertia desktop browser.

it seems code i'm after:

smoothstep_eo(t) = 2*smoothstep((t+1)/2) - 1 

from here - https://stackoverflow.com/a/196209/348174

but i'm having difficulty working out how implement it.

i imagine using code somehow calculate movement of click, drag , release , applying value scrolltotop() frame frame.

any advice on how approach this.

i suggest use cubiq.org's iscroll 5.

it's jquery plugin works , emulating of touch-by-mouse fine.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -