What you want, the effect that you want, is called kinetic scroll/scrolling/panning .
Here is an answer with a generic algorithm in it, I'm sure that with this keyword in mind you will probably find a ton more of examples.
Next time watch out for the tags, your first set of tags was incorrect, other frameworks have the same unity name .