Change the way we determine the scroll position