Use iOS 6 UIScrollView rubber banding algorithm

Change a good approximation into the exact algorithm.

(Taken from [here](https://twitter.com/chpwn/status/291794740553338880))