Adding window scroll event so it works on big screen when there is no sc...

If page is rendered on big screen, than there is no scroll bar so infinite pagination does not work, even there are two or more pages.

What do you think about this simple solution ?