Improve scrolling to cursor