MouseScrollEvent.webidl (1462B)
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 4 * You can obtain one at http://mozilla.org/MPL/2.0/. 5 */ 6 7 [Exposed=Window] 8 interface MouseScrollEvent : MouseEvent 9 { 10 const long HORIZONTAL_AXIS = 1; 11 const long VERTICAL_AXIS = 2; 12 13 readonly attribute long axis; 14 15 undefined initMouseScrollEvent(DOMString type, 16 optional boolean canBubble = false, 17 optional boolean cancelable = false, 18 optional Window? view = null, 19 optional long detail = 0, 20 optional long screenX = 0, 21 optional long screenY = 0, 22 optional long clientX = 0, 23 optional long clientY = 0, 24 optional boolean ctrlKey = false, 25 optional boolean altKey = false, 26 optional boolean shiftKey = false, 27 optional boolean metaKey = false, 28 optional short button = 0, 29 optional EventTarget? relatedTarget = null, 30 optional long axis = 0); 31 };