$(window).bind('mousewheel', function(event) {

event.preventDefault();

var timeNow = new Date().getTime()

if(timeNow - lastAnimation < 1500) {

console.log('stop scroll');

return;

}

if (event.originalEvent.wheelDelta >= 0) {

console.log('Scroll up');

}

else {

console.log('Scroll down');

}

lastAnimation = timeNow;

});

+ Recent posts