originalEvent

有时会有 jQuery 事件中没有的属性。要访问基础属性,请使用 Event.originalEvent

获取滚动方向

$(document).on("wheel",function(e){
    console.log(e.originalEvent.deltaY)
    // Returns a value between -100 and 100 depending on the direction you are scrolling
})