fix scrolling calculation

Merged Marco Martin requested to merge work/mart/fixsheetscrolling into master

when scrolling very slow with a touchpad, the old logic accumulated an error that made it diverge and scroll the contents out of view

behavior of mouse wheel and touchscreen are unchanged, scrolling via touchpad works at any speed

Merge request reports