PointerEvent
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.
Properties
The altitudeAngle
read-only property of the PointerEvent interface represents the angle between a transducer (a pointer or stylus) axis and the X-Y plane of a device screen.
The azimuthAngle
read-only property of the PointerEvent interface represents the angle between the Y-Z plane and the plane containing both the transducer (pointer or stylus) axis and the Y axis.
The MouseEvent.button
read-only property indicates which button was pressed or released on the mouse to trigger the event.
The MouseEvent.buttons
read-only property indicates which buttons are pressed on the mouse (or other input device) when a mouse event is triggered.
The pointerType
read-only property of the that caused a given pointer event.
The MouseEvent.relatedTarget
read-only property is the secondary target for the mouse event, if there is one.
The tangentialPressure
read-only property of the the pointer input (also known as barrel pressure or cylinder stress).
Functions
The getCoalescedEvents()
method of the PointerEvent interface returns a sequence of PointerEvent
instances that were coalesced (merged) into a single Element/pointermove_event or Element/pointerrawupdate_event event. Available only in secure contexts.
The MouseEvent.getModifierState()
method returns the current state of the specified modifier key: true
if the modifier is active (i.e., the modifier key is pressed or locked), otherwise, false
.
The getPredictedEvents()
method of the PointerEvent interface returns a sequence of PointerEvent
instances that are estimated future pointer positions.