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
Post a Comment