Centered scrolling to stop losing the viewport