Fix bug #19060 with inaccurate pixel-based scrolling.