如何在ReactJS中获取鼠标滚轮事件?
我已经尝试使用onWheel。
render: function() {
return <div onWheel = {this.wheel} >
< /div>;
},
我已尝试使用onScroll
render: function() {
return <div onScroll = {this.wheel} >
< /div>;
},
但是这两个事件都没有被捕获。请参见以下fiddle: