MouseEvent

extern class js.html.MouseEventextends UIEventAvailable in jsThe DOM MouseEvent represents events that occur due to the user interacting with a pointing device (such as a mouse). It's represented by the nsINSDOMMouseEvent  interface, which extends the nsIDOMMouseEvent interface.

Documentation for this class was provided by MDN.
var altKey(default,null) : Booltrue if the alt key was down when the mouse event was fired. Read only. var button(default,null) : IntThe 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. var clientX(default,null) : IntThe X coordinate of the mouse pointer in local (DOM content) coordinates. Read only. var clientY(default,null) : IntThe Y coordinate of the mouse pointer in local (DOM content) coordinates. Read only. var ctrlKey(default,null) : Booltrue if the control key was down when the mouse event was fired. Read only. var dataTransfer(default,null) : Clipboard var fromElement(default,null) : Node var metaKey(default,null) : Booltrue if the meta key was down when the mouse event was fired. Read only. var movementX(default,null) : Int var movementY(default,null) : Int var offsetX(default,null) : Int var offsetY(default,null) : Int var relatedTarget(default,null) : EventTargetThe target to which the event applies. Read only. var screenX(default,null) : IntThe X coordinate of the mouse pointer in global (screen) coordinates. Read only. var screenY(default,null) : IntThe Y coordinate of the mouse pointer in global (screen) coordinates. Read only. var shiftKey(default,null) : Booltrue if the shift key was down when the mouse event was fired. Read only. var toElement(default,null) : Node var x(default,null) : Int var y(default,null) : Int function initMouseEvent( type : String, canBubble : Bool, cancelable : Bool, view : DOMWindow, detail : Int, screenX : Int, screenY : Int, clientX : Int, clientY : Int, ctrlKey : Bool, altKey : Bool, shiftKey : Bool, metaKey : Bool, button : Int, relatedTarget : EventTarget ) : Void
version #18313, modified 2013-05-01 11:57:58 by api
0 comment