Reimplement momentum scrolling. Closes #288.