Make the scrolling work correctly.