Check scroll position on window resize