Improve automatic scrolling