DOM events
onWheel
Observes wheel input, which need not produce scrolling. A user can scroll using a keyboard or scrollbar without a wheel event. For position tracking use onScroll; do not block zoom or navigation just to observe input.
Formal Syntax & Structure
react syntaxreact
onWheel={handler}Working Example
Example Snippetreact
export default function App() { return <div tabIndex={0} aria-label='Tool notes' style={{height:80,overflow:'auto'}} onWheel={e=>console.log(e.deltaY,e.deltaMode)}><p style={{minHeight:240}}>Inventory notes</p></div>; }