WheelEvent class

Events that occur due to the user moving a mouse wheel or similar input device.

MDN Reference

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

WheelEvent(String type, [WheelEventInit? eventInitDict])
factory

Properties

altKey bool

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
atTarget num

Available on Event, provided by the Event$Typings extension

no setter
bubbles bool

Available on Event, provided by the Event$Typings extension

Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
no setter
bubblingPhase num

Available on Event, provided by the Event$Typings extension

no setter
button num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
buttons num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
cancelable bool

Available on Event, provided by the Event$Typings extension

Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
no setter
cancelBubble bool

Available on Event, provided by the Event$Typings extension

@deprecated
getter/setter pair
capturingPhase num

Available on Event, provided by the Event$Typings extension

no setter
clientX num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
clientY num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
composed bool

Available on Event, provided by the Event$Typings extension

Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
no setter
composedPath List<EventTarget> Function()

Available on Event, provided by the Event$Typings extension

getter/setter pair
ctrlKey bool

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
currentTarget EventTarget?

Available on Event, provided by the Event$Typings extension

Returns the object whose event listener's callback is currently being invoked.
no setter
defaultPrevented bool

Available on Event, provided by the Event$Typings extension

Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
no setter
deltaMode num

Available on WheelEvent, provided by the WheelEvent$Typings extension

MDN Reference
no setter
deltaX num

Available on WheelEvent, provided by the WheelEvent$Typings extension

MDN Reference
no setter
deltaY num

Available on WheelEvent, provided by the WheelEvent$Typings extension

MDN Reference
no setter
deltaZ num

Available on WheelEvent, provided by the WheelEvent$Typings extension

MDN Reference
no setter
detail num

Available on UIEvent, provided by the UIEvent$Typings extension

MDN Reference
no setter
domDeltaLine num

Available on WheelEvent, provided by the WheelEvent$Typings extension

no setter
domDeltaPage num

Available on WheelEvent, provided by the WheelEvent$Typings extension

no setter
domDeltaPixel num

Available on WheelEvent, provided by the WheelEvent$Typings extension

no setter
eventPhase num

Available on Event, provided by the Event$Typings extension

Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
no setter
getModifierState bool Function(String)

Available on MouseEvent, provided by the MouseEvent$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
initEvent ↔ void Function(String, [bool?, bool?])

Available on Event, provided by the Event$Typings extension

getter/setter pair
initMouseEvent ↔ void Function(String, bool, bool, Window, num, num, num, num, num, bool, bool, bool, bool, num, [EventTarget?])

Available on MouseEvent, provided by the MouseEvent$Typings extension

getter/setter pair
initUIEvent ↔ void Function(String, [bool?, bool?, Window?, num?])

Available on UIEvent, provided by the UIEvent$Typings extension

getter/setter pair
isTrusted bool

Available on Event, provided by the Event$Typings extension

Returns true if event was dispatched by the user agent, and false otherwise.
no setter
metaKey bool

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
movementX num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
movementY num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
none num

Available on Event, provided by the Event$Typings extension

no setter
offsetX num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
offsetY num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
pageX num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
pageY num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
preventDefault ↔ void Function()

Available on Event, provided by the Event$Typings extension

getter/setter pair
relatedTarget EventTarget?

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
returnValue bool

Available on Event, provided by the Event$Typings extension

@deprecated
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenX num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
screenY num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
shiftKey bool

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
srcElement EventTarget?

Available on Event, provided by the Event$Typings extension

no setter
stopImmediatePropagation ↔ void Function()

Available on Event, provided by the Event$Typings extension

getter/setter pair
stopPropagation ↔ void Function()

Available on Event, provided by the Event$Typings extension

getter/setter pair
target EventTarget?

Available on Event, provided by the Event$Typings extension

Returns the object to which event is dispatched (its target).
no setter
timeStamp num

Available on Event, provided by the Event$Typings extension

Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
no setter
type String

Available on Event, provided by the Event$Typings extension

Returns the type of event, e.g. "click", "hashchange", or "submit".
no setter
view Window?

Available on UIEvent, provided by the UIEvent$Typings extension

MDN Reference
no setter
which num

Available on UIEvent, provided by the UIEvent$Typings extension

no setter
x num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter
y num

Available on MouseEvent, provided by the MouseEvent$Typings extension

MDN Reference
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

domDeltaLine num
no setter
domDeltaPage num
no setter
domDeltaPixel num
no setter