JSFiddle - React, Tailwind, and code Playground

by KEN73CHEN

HTML

<div style='width:200px;height:200px;border:1px solid red;' id='testmouse'></div>

JavaScript

Object.append(Element.NativeEvents, {
    wheel: 2, mousewheel: 2, DOMMouseScroll: 2, //mouse wheel
});            
document.id('testmouse').addEvent('mousewheel',function(e){
    console.log(e);
    console.log(e.wheel);
    if (e.event.deltaY) {
        e.wheel = - e.event.deltaY;
    }    
    console.log(e.wheel);
});