The PointerEvent
interface represents the state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc.
Documentation PointerEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Constructor
Variables
Inherited Variables
Defined by MouseEvent
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.
Defined by UIEvent
Defined by Event
read onlycurrentTarget:EventTarget
A reference to the currently registered target for the event. This is the object to which the event is currently slated to be sent to; it's possible this has been changed along the way through retargeting.
read onlydefaultPrevented:Bool
Indicates whether or not event.preventDefault()
has been called on the event.
read onlyexplicitOriginalTarget:EventTarget
The explicit original target of the event (Mozilla-specific).
Indicates whether or not the event was initiated by the browser (after a user click for instance) or by a script (using an event creation method, like event.initEvent)
read onlyoriginalTarget:EventTarget
The original target of the event, before any retargetings (Mozilla-specific).
Inherited Methods
Defined by MouseEvent
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
Defined by UIEvent
Defined by Event
Non-standard. Returns the value of Event.defaultPrevented
. Use Event.defaultPrevented
instead.
initEvent (type:String, bubbles:Bool, cancelable:Bool):Void
Initializes the value of an Event created. If the event has already being dispatched, this method does nothing.
stopImmediatePropagation ():Void
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)