I’m trying to emulate the scrolling list views in iOS, where you can scroll slowly, or flick with momentum and it scrolls till it decelerates and stops. I know there must be a way to mathematically program this behavior (something about measuring how many pixels were scrolled in the past X millseconds), but I suck at math. And yes, I realize there are a couple plug-ins for this, but I’d rather do this from scratch (for learning purposes).
Any advice would be great!
This looks like what you want:
http://www.developria.com/2010/09/elastic-scrolling-with-javascr.html