JSFiddle - React, Tailwind, and code Playground
HTML
mouse wheel
<div id="log"></div>
JavaScript
$(window).bind('mousewheel', function(event) {
if (event.originalEvent.wheelDelta >= 0) {
log('Scroll up');
}
else {
log('Scroll down');
}
});
function log(str){
$('#log').append(str);
}