Added scrolling to caret as it moves, to keep it in view.