merge onWindowScroll and onScroll