rleij
2/7/2017 - 4:14 PM

event handler for scrolling up or down

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');
            }
        });