JSFiddle - React, Tailwind, and code Playground

by Alpesh Patel

JavaScript

window.addEventListener('mousewheel', function(e){
    wDelta = e.wheelDelta < 0 ? 'down' : 'up';
    console.log(wDelta);
});