wheel(onwheel)イベント
wheel(onwheel)イベントは、マウスホイールをロールアップ/ダウンすると発生するイベントです。
onwheelイベントは、タッチデバイスを使用してスクロールやズームイン、ズームアウトしても発生します。
構文(Syntax)
in HTML
<tagelement onwheel="function()">
in JavaScript
object.onwheel = function(){ }; object.addEventListener("wheel", script_);
備考(Remarks)
Bubbles | Yes |
Cancelable | Yes |
Interface | WheelEvent |
Supported HTML Elements | ALL HTML elements |
Example
関連(Related)
HTML、CSS、DOMのマウス、キーボード、タッチデバイス、カーソルに関する用途一覧です。
HTML
CSS
DOM
- 全般
-
- インターフェイス
- UiEvent
- イベント
- which
- プロパティ
- altKey、 ctrlKey、 metaKey、 relatedTarget、 shiftKey
- メソッド
- getModifierState()
- マウス
-
- インターフェイス
- DragEvent、 MouseEvent
- イベント
- click、 contextmenu、 dblclick、 dragend、 dragenter、 dragleave、 dragover、 dragstart、 drop、 mousedown、 mouseenter、 mouseleave、 mousemove、 mouseout、 mouseover、 mouseup、 show、 onwheel
- プロパティ
- button、 buttons、 clientX、 clientY、 code、 deltaMode、 deltaX、 deltaY、 deltaZ、 pageX、 pageY、 screenX、 screenY
- メソッド
- キーボード
- タッチデバイス
-
- インターフェイス
- TouchEvent
- イベント
- touchcancel、 touchend、 touchmove、 touchstart、 transitionend
- プロパティ
- メソッド