Improved scroll detection.