event handler for scrolling up or down
$(document).bind('mousewheel', function (event) {
if (event.originalEvent.wheelDelta >= 0) {
console.log('Scroll up');
}
else {
console.log('Scroll down');
}
});