fix infinite scrolling on mobile devices