Dart API Referencedart:htmlWheelEvent

WheelEvent class

@DomName('WheelEvent')
class WheelEvent extends MouseEvent native "WheelEvent,MouseWheelEvent,MouseScrollEvent" {

 factory WheelEvent(String type,
     {Window view, int deltaX: 0, int deltaY: 0,
     int detail: 0, int screenX: 0, int screenY: 0, int clientX: 0,
     int clientY: 0, int button: 0, bool canBubble: true,
     bool cancelable: true, bool ctrlKey: false, bool altKey: false,
     bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) {

   if (view == null) {
     view = window;
   }
   var eventType = 'WheelEvent';
   if (Device.isFirefox) {
     eventType = 'MouseScrollEvents';
   }
   final event = document.$dom_createEvent(eventType);
   // If polyfilling, then flip these because we'll flip them back to match
   // the W3C standard:
   // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-WheelEvent-deltaY
   if (JS('bool', '#.deltaY === undefined', event)) {
     deltaX = -deltaX;
     deltaY = -deltaY;
   }
   if (event._hasInitWheelEvent) {
     var modifiers = [];
     if (ctrlKey) {
       modifiers.push('Control');
     }
     if (altKey) {
       modifiers.push('Alt');
     }
     if (shiftKey) {
       modifiers.push('Shift');
     }
     if (metaKey) {
       modifiers.push('Meta');
     }
     event._initWheelEvent(type, canBubble, cancelable, view, detail, screenX,
         screenY, clientX, clientY, button, relatedTarget, modifiers.join(' '),
         deltaX, deltaY, 0, 0);
   } else if (event._hasInitMouseScrollEvent) {
     var axis = 0;
     var detail = 0;
     if (deltaX != 0 && deltaY != 0) {
       throw UnsupportedError(
           'Cannot modify deltaX and deltaY simultaneously');
     }
     if (deltaY != 0) {
       detail = deltaY;
       axis = JS('int', 'MouseScrollEvent.VERTICAL_AXIS');
     } else if (deltaX != 0) {
       detail = deltaX;
       axis = JS('int', 'MouseScrollEvent.HORIZONTAL_AXIS');
     }
     event._initMouseScrollEvent(type, canBubble, cancelable, view, detail,
         screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey,
         metaKey, button, relatedTarget, axis);
   } else {
     // Fallthrough for Dartium.
     event.$dom_initMouseEvent(type, canBubble, cancelable, view, detail,
         screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey,
         metaKey, button, relatedTarget);
     event.$dom_initWebKitWheelEvent(deltaX,
         deltaY ~/ 120, // Chrome does an auto-convert to pixels.
         view, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey,
         metaKey);
   }

   return event;
 }


 @DomName('WheelEvent.DOM_DELTA_LINE')
 @DocsEditable
 static const int DOM_DELTA_LINE = 0x01;

 @DomName('WheelEvent.DOM_DELTA_PAGE')
 @DocsEditable
 static const int DOM_DELTA_PAGE = 0x02;

 @DomName('WheelEvent.DOM_DELTA_PIXEL')
 @DocsEditable
 static const int DOM_DELTA_PIXEL = 0x00;

 @JSName('webkitDirectionInvertedFromDevice')
 @DomName('WheelEvent.webkitDirectionInvertedFromDevice')
 @DocsEditable
 @SupportedBrowser(SupportedBrowser.CHROME)
 @SupportedBrowser(SupportedBrowser.SAFARI)
 @Experimental
 final bool directionInvertedFromDevice;

 @JSName('initWebKitWheelEvent')
 @DomName('WheelEvent.initWebKitWheelEvent')
 @DocsEditable
 void $dom_initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native;


 /**
  * The amount that is expected to scroll vertically, in units determined by
  * [deltaMode].
  *
  * See also:
  *
  * * [WheelEvent.deltaY](http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-WheelEvent-deltaY) from the W3C.
  */
 @DomName('WheelEvent.deltaY')
 num get deltaY {
   if (JS('bool', '#.deltaY !== undefined', this)) {
     // W3C WheelEvent
     return this._deltaY;
   } else if (JS('bool', '#.wheelDelta !== undefined', this)) {
     // Chrome and IE
     return -this._wheelDelta;
   } else if (JS('bool', '#.detail !== undefined', this)) {
     // Firefox

     // Handle DOMMouseScroll case where it uses detail and the axis to
     // differentiate.
     if (JS('bool', '#.axis == MouseScrollEvent.VERTICAL_AXIS', this)) {
       var detail = this._detail;
       // Firefox is normally the number of lines to scale (normally 3)
       // so multiply it by 40 to get pixels to move, matching IE & WebKit.
       if (detail.abs() < 100) {
         return -detail * 40;
       }
       return -detail;
     }
     return 0;
   }
   throw new UnsupportedError(
       'deltaY is not supported');
 }

 /**
  * The amount that is expected to scroll horizontally, in units determined by
  * [deltaMode].
  *
  * See also:
  *
  * * [WheelEvent.deltaX](http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-WheelEvent-deltaX) from the W3C.
  */
 @DomName('WheelEvent.deltaX')
 num get deltaX {
   if (JS('bool', '#.deltaX !== undefined', this)) {
     // W3C WheelEvent
     return this._deltaX;
   } else if (JS('bool', '#.wheelDeltaX !== undefined', this)) {
     // Chrome
     return -this._wheelDeltaX;
   } else if (JS('bool', '#.detail !== undefined', this)) {
     // Firefox and IE.
     // IE will have detail set but will not set axis.

     // Handle DOMMouseScroll case where it uses detail and the axis to
     // differentiate.
     if (JS('bool', '#.axis !== undefined && '
       '#.axis == MouseScrollEvent.HORIZONTAL_AXIS', this, this)) {
       var detail = this._detail;
       // Firefox is normally the number of lines to scale (normally 3)
       // so multiply it by 40 to get pixels to move, matching IE & WebKit.
       if (detail < 100) {
         return -detail * 40;
       }
       return -detail;
     }
     return 0;
   }
   throw new UnsupportedError(
       'deltaX is not supported');
 }

 @DomName('WheelEvent.deltaMode')
 int get deltaMode {
   if (JS('bool', '!!(#.deltaMode)', this)) {
     return JS('int', '#.deltaMode', this);
   }
   // If not available then we're poly-filling and doing pixel scroll.
   return 0;
 }

 num get _deltaY => JS('num', '#.deltaY', this);
 num get _deltaX => JS('num', '#.deltaX', this);
 num get _wheelDelta => JS('num', '#.wheelDelta', this);
 num get _wheelDeltaX => JS('num', '#.wheelDeltaX', this);
 num get _detail => JS('num', '#.detail', this);

 bool get _hasInitMouseScrollEvent =>
     JS('bool', '!!(#.initMouseScrollEvent)', this);

 @JSName('initMouseScrollEvent')
 void _initMouseScrollEvent(
     String type,
     bool canBubble,
     bool cancelable,
     Window view,
     int detail,
     int screenX,
     int screenY,
     int clientX,
     int clientY,
     bool ctrlKey,
     bool altKey,
     bool shiftKey,
     bool metaKey,
     int button,
     EventTarget relatedTarget,
     int axis) native;

 bool get _hasInitWheelEvent =>
     JS('bool', '!!(#.initWheelEvent)', this);
 @JSName('initWheelEvent')
 void _initWheelEvent(
     String eventType,
     bool canBubble,
     bool cancelable,
     Window view,
     int detail,
     int screenX,
     int screenY,
     int clientX,
     int clientY,
     int button,
     EventTarget relatedTarget,
     String modifiersList,
     int deltaX,
     int deltaY,
     int deltaZ,
     int deltaMode) native;

}

Extends

Interceptor > Event > UIEvent > MouseEvent > WheelEvent

Static Properties

const int DOM_DELTA_LINE #

static const int DOM_DELTA_LINE = 0x01

const int DOM_DELTA_PAGE #

static const int DOM_DELTA_PAGE = 0x02

const int DOM_DELTA_PIXEL #

static const int DOM_DELTA_PIXEL = 0x00

Constructors

factory WheelEvent(String type, {Window view, int deltaX: 0, int deltaY: 0, int detail: 0, int screenX: 0, int screenY: 0, int clientX: 0, int clientY: 0, int button: 0, bool canBubble: true, bool cancelable: true, bool ctrlKey: false, bool altKey: false, bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) #

factory WheelEvent(String type,
   {Window view, int deltaX: 0, int deltaY: 0,
   int detail: 0, int screenX: 0, int screenY: 0, int clientX: 0,
   int clientY: 0, int button: 0, bool canBubble: true,
   bool cancelable: true, bool ctrlKey: false, bool altKey: false,
   bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) {

 if (view == null) {
   view = window;
 }
 var eventType = 'WheelEvent';
 if (Device.isFirefox) {
   eventType = 'MouseScrollEvents';
 }
 final event = document.$dom_createEvent(eventType);
 // If polyfilling, then flip these because we'll flip them back to match
 // the W3C standard:
 // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-WheelEvent-deltaY
 if (JS('bool', '#.deltaY === undefined', event)) {
   deltaX = -deltaX;
   deltaY = -deltaY;
 }
 if (event._hasInitWheelEvent) {
   var modifiers = [];
   if (ctrlKey) {
     modifiers.push('Control');
   }
   if (altKey) {
     modifiers.push('Alt');
   }
   if (shiftKey) {
     modifiers.push('Shift');
   }
   if (metaKey) {
     modifiers.push('Meta');
   }
   event._initWheelEvent(type, canBubble, cancelable, view, detail, screenX,
       screenY, clientX, clientY, button, relatedTarget, modifiers.join(' '),
       deltaX, deltaY, 0, 0);
 } else if (event._hasInitMouseScrollEvent) {
   var axis = 0;
   var detail = 0;
   if (deltaX != 0 && deltaY != 0) {
     throw UnsupportedError(
         'Cannot modify deltaX and deltaY simultaneously');
   }
   if (deltaY != 0) {
     detail = deltaY;
     axis = JS('int', 'MouseScrollEvent.VERTICAL_AXIS');
   } else if (deltaX != 0) {
     detail = deltaX;
     axis = JS('int', 'MouseScrollEvent.HORIZONTAL_AXIS');
   }
   event._initMouseScrollEvent(type, canBubble, cancelable, view, detail,
       screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey,
       metaKey, button, relatedTarget, axis);
 } else {
   // Fallthrough for Dartium.
   event.$dom_initMouseEvent(type, canBubble, cancelable, view, detail,
       screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey,
       metaKey, button, relatedTarget);
   event.$dom_initWebKitWheelEvent(deltaX,
       deltaY ~/ 120, // Chrome does an auto-convert to pixels.
       view, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey,
       metaKey);
 }

 return event;
}

Properties

final int $dom_charCode #

inherited from UIEvent
final int $dom_charCode

final int $dom_clientX #

inherited from MouseEvent
The X coordinate of the mouse pointer in local (DOM content) coordinates. Read only.
final int $dom_clientX

final int $dom_clientY #

inherited from MouseEvent
The Y coordinate of the mouse pointer in local (DOM content) coordinates. Read only.
final int $dom_clientY

final int $dom_keyCode #

inherited from UIEvent
final int $dom_keyCode

final int $dom_layerX #

inherited from UIEvent
final int $dom_layerX

final int $dom_layerY #

inherited from UIEvent
final int $dom_layerY

final int $dom_pageX #

inherited from UIEvent
final int $dom_pageX

final int $dom_pageY #

inherited from UIEvent
final int $dom_pageY

final int $dom_screenX #

inherited from MouseEvent
The X coordinate of the mouse pointer in global (screen) coordinates. Read only.
final int $dom_screenX

final int $dom_screenY #

inherited from MouseEvent
The Y coordinate of the mouse pointer in global (screen) coordinates. Read only.
final int $dom_screenY

final int $dom_webkitMovementX #

inherited from MouseEvent
final int $dom_webkitMovementX

final int $dom_webkitMovementY #

inherited from MouseEvent
final int $dom_webkitMovementY

final bool altKey #

inherited from MouseEvent
true if the alt key was down when the mouse event was fired. Read only.
final bool altKey

final bool bubbles #

inherited from Event
A boolean indicating whether the event bubbles up through the DOM or not.
final bool bubbles

final int button #

inherited from MouseEvent
The button number that was pressed when the mouse event was fired: Left button=0, middle button=1 (if present), right button=2. For mice configured for left handed use in which the button actions are reversed the values are instead read from right to left. Read only.
final int button

final bool cancelable #

inherited from Event
A boolean indicating whether the event is cancelable.
final bool cancelable

bool cancelBubble #

inherited from Event
A boolean indicating whether the bubbling of the event has been canceled or not.
bool cancelBubble

final Point client #

inherited from MouseEvent
The X coordinate of the mouse pointer in local (DOM content) coordinates. Read only.
@DomName('MouseEvent.clientX')
@DomName('MouseEvent.clientY')
Point get client => new Point($dom_clientX, $dom_clientY);

final int clientX #

inherited from MouseEvent
@deprecated
int get clientX => client.x;

final int clientY #

inherited from MouseEvent
@deprecated
int get clientY => client.y;

final DataTransfer clipboardData #

inherited from Event
final DataTransfer clipboardData

final bool ctrlKey #

inherited from MouseEvent
true if the control key was down when the mouse event was fired. Read only.
final bool ctrlKey

final EventTarget currentTarget #

inherited from Event
EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._get_currentTarget);

final DataTransfer dataTransfer #

inherited from MouseEvent
final DataTransfer dataTransfer

final bool defaultPrevented #

inherited from Event
Indicates whether or not event.preventDefault() has been called on the event.
final bool defaultPrevented

final int deltaMode #

@DomName('WheelEvent.deltaMode')
int get deltaMode {
 if (JS('bool', '!!(#.deltaMode)', this)) {
   return JS('int', '#.deltaMode', this);
 }
 // If not available then we're poly-filling and doing pixel scroll.
 return 0;
}

final num deltaX #

The amount that is expected to scroll horizontally, in units determined by deltaMode.

See also:

@DomName('WheelEvent.deltaX')
num get deltaX {
 if (JS('bool', '#.deltaX !== undefined', this)) {
   // W3C WheelEvent
   return this._deltaX;
 } else if (JS('bool', '#.wheelDeltaX !== undefined', this)) {
   // Chrome
   return -this._wheelDeltaX;
 } else if (JS('bool', '#.detail !== undefined', this)) {
   // Firefox and IE.
   // IE will have detail set but will not set axis.

   // Handle DOMMouseScroll case where it uses detail and the axis to
   // differentiate.
   if (JS('bool', '#.axis !== undefined && '
     '#.axis == MouseScrollEvent.HORIZONTAL_AXIS', this, this)) {
     var detail = this._detail;
     // Firefox is normally the number of lines to scale (normally 3)
     // so multiply it by 40 to get pixels to move, matching IE & WebKit.
     if (detail < 100) {
       return -detail * 40;
     }
     return -detail;
   }
   return 0;
 }
 throw new UnsupportedError(
     'deltaX is not supported');
}

final num deltaY #

The amount that is expected to scroll vertically, in units determined by deltaMode.

See also:

@DomName('WheelEvent.deltaY')
num get deltaY {
 if (JS('bool', '#.deltaY !== undefined', this)) {
   // W3C WheelEvent
   return this._deltaY;
 } else if (JS('bool', '#.wheelDelta !== undefined', this)) {
   // Chrome and IE
   return -this._wheelDelta;
 } else if (JS('bool', '#.detail !== undefined', this)) {
   // Firefox

   // Handle DOMMouseScroll case where it uses detail and the axis to
   // differentiate.
   if (JS('bool', '#.axis == MouseScrollEvent.VERTICAL_AXIS', this)) {
     var detail = this._detail;
     // Firefox is normally the number of lines to scale (normally 3)
     // so multiply it by 40 to get pixels to move, matching IE & WebKit.
     if (detail.abs() < 100) {
       return -detail * 40;
     }
     return -detail;
   }
   return 0;
 }
 throw new UnsupportedError(
     'deltaY is not supported');
}

final int detail #

inherited from UIEvent
Detail about the event, depending on the type of event. Read only.
final int detail

final bool directionInvertedFromDevice #

final bool directionInvertedFromDevice

final int eventPhase #

inherited from Event
Indicates which phase of the event flow is being processed.
final int eventPhase

final Node fromElement #

inherited from MouseEvent
final Node fromElement

final int hashCode #

inherited from Interceptor

Get a hash code for this object.

All objects have hash codes. Hash codes are guaranteed to be the same for objects that are equal when compared using the equality operator ==. Other than that there are no guarantees about the hash codes. They will not be consistent between runs and there are no distribution guarantees.

If a subclass overrides hashCode it should override the equality operator as well to maintain consistency.

docs inherited from Object
int get hashCode => Primitives.objectHashCode(this);

final Point layer #

inherited from UIEvent
@DomName('UIEvent.layerX')
@DomName('UIEvent.layerY')
Point get layer => new Point($dom_layerX, $dom_layerY);

final int layerX #

inherited from UIEvent
@deprecated
int get layerX => layer.x;

final int layerY #

inherited from UIEvent
@deprecated
int get layerY => layer.y;

final bool metaKey #

inherited from MouseEvent
true if the meta key was down when the mouse event was fired. Read only.
final bool metaKey

final Point movement #

inherited from MouseEvent
@DomName('MouseEvent.movementX')
@DomName('MouseEvent.movementY')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental
Point get movement => new Point($dom_webkitMovementX, $dom_webkitMovementY);

final int movementX #

inherited from MouseEvent
@deprecated
int get movementX => movement.x;

final int movementY #

inherited from MouseEvent
@deprecated
int get movementY => movement.y;

final Point offset #

inherited from MouseEvent

The coordinates of the mouse pointer in target node coordinates.

This value may vary between platforms if the target node moves after the event has fired or if the element has CSS transforms affecting it.

Point get offset {
 if (JS('bool', '!!#.offsetX', this)) {
   var x = JS('int', '#.offsetX', this);
   var y = JS('int', '#.offsetY', this);
   return new Point(x, y);
 } else {
   // Firefox does not support offsetX.
   var target = this.target;
   if (!(target is Element)) {
     throw new UnsupportedError(
         'offsetX is only supported on elements');
   }
   return (this.client -
       this.target.getBoundingClientRect().topLeft).toInt();
 }
}

final int offsetX #

inherited from MouseEvent
@deprecated
int get offsetX => offset.x;

final int offsetY #

inherited from MouseEvent
@deprecated
int get offsetY => offset.y;

final Point page #

inherited from UIEvent
@DomName('UIEvent.pageX')
@DomName('UIEvent.pageY')
Point get page => new Point($dom_pageX, $dom_pageY);

final int pageX #

inherited from UIEvent
@deprecated
int get pageX => page.x;

final int pageY #

inherited from UIEvent
@deprecated
int get pageY => page.y;

final EventTarget relatedTarget #

inherited from MouseEvent
EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_relatedTarget);

final Type runtimeType #

inherited from Interceptor

A representation of the runtime type of the object.

docs inherited from Object
Type get runtimeType => getRuntimeType(this);

final Point screen #

inherited from MouseEvent
The X coordinate of the mouse pointer in global (screen) coordinates. Read only.
@DomName('MouseEvent.screenX')
@DomName('MouseEvent.screenY')
Point get screen => new Point($dom_screenX, $dom_screenY);

final int screenX #

inherited from MouseEvent
@deprecated
int get screenX => screen.x;

final int screenY #

inherited from MouseEvent
@deprecated
int get screenY => screen.y;

final bool shiftKey #

inherited from MouseEvent
true if the shift key was down when the mouse event was fired. Read only.
final bool shiftKey

final EventTarget target #

inherited from Event
EventTarget get target => _convertNativeToDart_EventTarget(this._get_target);

final int timeStamp #

inherited from Event
The time that the event was created.
final int timeStamp

final Node toElement #

inherited from MouseEvent
final Node toElement

final String type #

inherited from Event
The name of the event (case-insensitive).
final String type

final WindowBase view #

inherited from UIEvent
WindowBase get view => _convertNativeToDart_Window(this._get_view);

final int which #

inherited from UIEvent
final int which

Operators

bool operator ==(other) #

inherited from Interceptor

The equality operator.

The default behavior for all Objects is to return true if and only if this and other are the same object.

If a subclass overrides the equality operator it should override the hashCode method as well to maintain consistency.

docs inherited from Object
bool operator ==(other) => identical(this, other);

Methods

dynamic noSuchMethod(Invocation invocation) #

inherited from Interceptor

noSuchMethod is invoked when users invoke a non-existant method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.

The default behavior of noSuchMethod is to throw a noSuchMethodError.

docs inherited from Object
dynamic noSuchMethod(Invocation invocation) {
 throw new NoSuchMethodError(
     this,
     _symbolToString(invocation.memberName),
     invocation.positionalArguments,
     _symbolMapToStringMap(invocation.namedArguments));
}

void preventDefault() #

inherited from Event
Cancels the event (if it is cancelable).
@DomName('Event.preventDefault')
@DocsEditable
void preventDefault() native;

void stopImmediatePropagation() #

inherited from Event
For this particular event, no other listener will be called. Neither those attached on the same element, nor those attached on elements which will be traversed later (in capture phase, for instance)
@DomName('Event.stopImmediatePropagation')
@DocsEditable
void stopImmediatePropagation() native;

void stopPropagation() #

inherited from Event
Stops the propagation of events further along in the DOM.
@DomName('Event.stopPropagation')
@DocsEditable
void stopPropagation() native;

String toString() #

inherited from Interceptor

Returns a string representation of this object.

docs inherited from Object
String toString() => Primitives.objectToString(this);

void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) #

inherited from Event
Initializes the value of an Event created through the DocumentEvent interface.
@JSName('initEvent')
@DomName('Event.initEvent')
@DocsEditable
void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) native;

void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget) #

inherited from MouseEvent
@DomName('MouseEvent.initMouseEvent')
@DocsEditable
void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget) {
 var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget);
 _$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget_1);
 return;
}

void $dom_initUIEvent(String type, bool canBubble, bool cancelable, Window view, int detail) #

inherited from UIEvent

Initializes the UIEvent object.

Parameters
typeArg
The type of UI event.
canBubbleArg
Whether or not the event can bubble.
cancelableArg
Whether or not the event can be canceled.
viewArg
Specifies the view attribute value. This may be null.
detailArg
Specifies the detail attribute value.
@JSName('initUIEvent')
@DomName('UIEvent.initUIEvent')
@DocsEditable
void $dom_initUIEvent(String type, bool canBubble, bool cancelable, Window view, int detail) native;

void $dom_initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) #

@JSName('initWebKitWheelEvent')
@DomName('WheelEvent.initWebKitWheelEvent')
@DocsEditable
void $dom_initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native;

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.