Implements kinetic scrolling.