Implements getScrollPos