package js.html
extended by DragEvent, MouseScrollEvent, PointerEvent, SimpleGestureEvent, WheelEvent
Available on jsThe
MouseEventinterface represents events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface includeclick,dblclick,mouseup,mousedown.Documentation MouseEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new (typeArg:String, ?mouseEventInitDict:MouseEventInit)Throws:
null |
DOMError |
|---|
read only altKey:BoolReturns true if the alt key was down when the mouse event was fired.
read only button:IntThe button number that was pressed when the mouse event was fired.
read only buttons:IntThe buttons being pressed when the mouse event was fired
read only clientX:IntThe X coordinate of the mouse pointer in local (DOM content) coordinates.
read only clientY:IntThe Y coordinate of the mouse pointer in local (DOM content) coordinates.
read only ctrlKey:BoolReturns true if the control key was down when the mouse event was fired.
read only metaKey:BoolReturns true if the meta key was down when the mouse event was fired.
read only movementX:IntThe X coordinate of the mouse pointer relative to the position of the last mousemove event.
read only movementY:IntThe Y coordinate of the mouse pointer relative to the position of the last mousemove event.
read only offsetX:IntThe X coordinate of the mouse pointer relative to the position of the padding edge of the target node.
read only offsetY:IntThe Y coordinate of the mouse pointer relative to the position of the padding edge of the target node.
read only region:StringReturns the id of the hit region affected by the event. If no hit region is affected, null is returned.
read only relatedTarget:EventTargetThe secondary target for the event, if there is one.
read only screenX:IntThe X coordinate of the mouse pointer in global (screen) coordinates.
read only screenY:IntThe Y coordinate of the mouse pointer in global (screen) coordinates.
read only shiftKey:BoolReturns true if the shift key was down when the mouse event was fired.
getModifierState (keyArg:String):BoolReturns the current state of the specified modifier key. See the KeyboardEvent.getModifierState() for details.
initMouseEvent (typeArg:String, canBubbleArg:Bool, cancelableArg:Bool, viewArg:Window, detailArg:Int, screenXArg:Int, screenYArg:Int, clientXArg:Int, clientYArg:Int, ctrlKeyArg:Bool, altKeyArg:Bool, shiftKeyArg:Bool, metaKeyArg:Bool, buttonArg:Int, relatedTargetArg:EventTarget):VoidInitializes the value of a MouseEvent created. If the event has already being dispatched, this method does nothing.
initNSMouseEvent (typeArg:String, canBubbleArg:Bool, cancelableArg:Bool, viewArg:Window, detailArg:Int, screenXArg:Int, screenYArg:Int, clientXArg:Int, clientYArg:Int, ctrlKeyArg:Bool, altKeyArg:Bool, shiftKeyArg:Bool, metaKeyArg:Bool, buttonArg:Int, relatedTargetArg:EventTarget, pressure:Float, inputSourceArg:Int):Void
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/MouseEvent.html