Mouse wheel events in Reactjs

Viewed 50379

How do you go about getting mouse wheel events in reactjs?

I have tried onWheel

  render: function() {
    return <div onWheel = {this.wheel} >
       < /div>;
  },

and I have tried onScroll

  render: function() {
    return <div onScroll = {this.wheel} >
       < /div>;
  },

But neither of these events are picked up. See the fiddle below :

https://jsfiddle.net/812jnppf/2/

2 Answers
Related