Added offset to the calculation of scrollFinish
Removed trailing whitespace and tab.