Adjust calculation of scrolling to line up manual and translated scrollbar positioning