class MouseEvent
package js.html
extends UIEvent › Event
extended by DragEvent, MouseScrollEvent, PointerEvent, SimpleGestureEvent, WheelEvent
Available on HTML5
The MouseEvent
interface represents events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click
, dblclick
, mouseup
, mousedown
.
Documentation MouseEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Constructor
Variables
The X coordinate of the mouse pointer relative to the position of the padding edge of the target node.
The Y coordinate of the mouse pointer relative to the position of the padding edge of the target node.
Methods
getModifierState (keyArg:String):Bool
Returns 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):Void
Initializes 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