JAL-147 corrected calculation of vertical scroll position and max