HTML DOM 휠 이벤트
WheelEvent 객체
마우스 휠이 스크롤될 때 발생하는 이벤트는 WheelEvent 객체에 속합니다.
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) |
상속된 속성 및 메서드
WheelEvent는 다음에서 모든 속성과 메서드를 상속합니다.
이벤트 유형
다음 이벤트 유형은 WheelEvent 객체에 속합니다.
Event | Description |
---|---|
onwheel | The event occurs when the mouse wheel rolls up or down over an element |