recalculate scrollTop each time the window scrolls.