Stop infinite scrolling from scrolling when there are no more items.