EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

WheelEvent object

This object is not supported for Windows Store apps using JavaScript.

Document Object Model (DOM) Level 3 Events Specification, Section 5.2.4

DOM Information

Inheritance Hierarchy

 Event
  UIEvent
   MouseEvent
     WheelEvent

Members

The WheelEvent object has these types of members:

Methods

The WheelEvent object has these methods.

MethodDescription
getModifierState

Queries the state of the specified modifier key.

initMouseEvent

Initializes a new mouse event that the createEvent method created.

initUIEvent

Initializes a new user interface event that the createEvent method created.

initWheelEvent

Initializes a new mouse wheel event that the createEvent method created.

 

Properties

The WheelEvent object has these properties.

PropertyDescription

altKey

Gets a value that indicates whether the Alt key is pressed.

button

Indicates which pointer device button has changed.

buttons

Indicates which pointer device buttons are being pressed, expressed as a bitmask.

clientX

Gets the x-coordinate of the mouse pointer, relative to the upper-left corner of the viewport (that is, the application's client area).

clientY

Gets the y-coordinate of the mouse pointer, relative to the upper-left corner of the viewport (that is, the application's client area).

ctrlKey

Gets a value that indicates whether the Ctrl key is pressed.

deltaMode

Gets a value that indicates the unit of measurement for delta values.

deltaX

Gets the distance that a mouse wheel has rotated around the x-axis (horizontal).

deltaY

Gets the distance that a mouse wheel has rotated around the y-axis (vertical).

deltaZ

Gets the distance that a mouse wheel has rotated around the z-axis.

detail

Gets additional information about an event.

fromElement

Gets the object that the mouse pointer exited.

layerX

Gets the x-coordinate of the mouse pointer, relative to the last positioned ancestor element.

layerY

Gets the y-coordinate of the mouse pointer, relative to the last positioned ancestor element.

metaKey

Gets a value that indicates whether the Meta/Control key is pressed.

offsetX

Gets the x-coordinate of the mouse pointer, relative to the target node.

offsetY

Gets the y-coordinate of the mouse pointer, relative to the target node.

pageX

Gets the x-coordinate of the mouse pointer, relative to the upper-left corner of the page.

pageY

Gets the y-coordinate of the mouse pointer, relative to the upper-left corner of the page.

relatedTarget

Gets the secondary element that is involved in an event.

screenX

Gets the x-coordinate of the mouse pointer, relative to the upper-left corner of the screen.

screenY

Gets the y-coordinate of the mouse pointer, relative to the upper-left corner of the screen.

shiftKey

Gets a value that indicates whether the Shift key is pressed.

toElement

Gets the object that the mouse pointer entered.

view

Gets the window object that an event is generated from.

x

Gets the x-coordinate of the mouse pointer, relative to the last positioned ancestor element.

y

Gets the y-coordinate of the mouse pointer, relative to the last positioned ancestor element.

 

Standards information

Remarks

The WheelEvent event also inherits properties from the MouseEvent object.

See also

onmousewheel

 

 

Anzeigen:
© 2014 Microsoft