Some improvements on the vertical scroll bug