Use a tolerance when checking scrolling to fix zoomed scrolls
Merge pull request #1324 from mrmr1993/add-tolerance-to-scroll-check

Fix smooth scrolling when zoomed.