infinitescroll: Allow for subsection scrolling

Infinitescrolling only worked for window scroll. Now it works for an given element.