add an approximate calculation for stop scrolling at bottom of screen