Change implementation of momentum scrolling