HTML DOM WheelEvent
❮ Sự kiện DOM ❮ Đối tượng sự kiện
Đối tượng WheelEvent
Các sự kiện xảy ra khi con lăn chuột đang cuộn, thuộc về Đối tượng WheelEvent.
Thuộc tính và phương pháp WheelEvent
Property/Method | Description |
---|---|
deltaX | Returns the horizontal scroll amount of a mouse wheel (x-axis) |
deltaY | Returns the vertical scroll amount of a mouse wheel (y-axis) |
deltaZ | Returns the scroll amount of a mouse wheel for the z-axis |
deltaMode | Returns a number that represents the unit of measurements for delta values (pixels, lines or pages) |
Thuộc tính và phương thức kế thừa
WheelEvent kế thừa tất cả các thuộc tính và phương thức từ:
Các loại sự kiện
Các loại sự kiện này thuộc về Đối tượng WheelEvent:
Event | Description |
---|---|
onwheel | The event occurs when the mouse wheel rolls up or down over an element |
❮ Sự kiện DOM ❮ Đối tượng sự kiện