Fix jerky scroll to top.