Take scrollTop into consideration