WorthyD
1/2/2015 - 8:11 PM

Snippet to show if user has scrolled or resized the window

Snippet to show if user has scrolled or resized the window

var outerPane = $details.find(".details-pane-outer"),
    didScroll = false;
 
$(window).scroll(function() {
    didScroll = true;
});
 
setInterval(function() {
    if ( didScroll ) {
        didScroll = false;
        // Check your page position and then
        // Load in more results
    }
}, 250);