RsD0p9BK
1/28/2016 - 12:41 PM

scrollStop.js

$(window).scroll(function() {
    clearTimeout($.data(this, 'scrollTimer'));
    $.data(this, 'scrollTimer', setTimeout(function() {
        // do something
        console.log("Haven't scrolled in 250ms!");
    }, 250));
});

// http://stackoverflow.com/questions/9144560/jquery-scroll-detect-when-user-stops-scrolling