$(window).on('wheel', function (event) {
if (event.originalEvent.deltaY < 0) {
//scrolling up
if (window.scrollY == 0) {
// at the top of the window
}
}
else {
//scrolling down
}
});
Leave a Reply