JSFiddle - React, Tailwind, and code Playground

JavaScript

document.addEventListener('wheel', function(e) {
  alert(e.deltaX);
})