trigger onScroll event after window resize