The WheelEvent Object handles events that occur when the mouse wheel is scrolling.
Event | Occurs When |
---|---|
onwheel | The mouse wheel rolls over an element |
Property | Returns |
---|---|
deltaX | The horizontal (x-axis) scroll amount of the wheel |
deltaY | The vertical (y-axis) scroll amount of the wheel |
deltaZ | The z-axis scroll amount of the wheel |
deltaMode | The unit of measurements (pixels, lines or pages) |
The WheelEvent inherits all the properties and methods from:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!