I\'m implementing the scrolling behaviour of a touch screen UI but I\'m too tired in the moment to wrap my mind around some supposedly trivial piece of math:
y (
You could keep track of the velocity and cut that down by a fraction of the velocity each time. That would simulate friction quite well I believe.