Core logic for kinetic scrolling added.