Improve autoscroll performance