pointerdown | onpointerdown event
Dispatched when a pointer enters the state of having a non-zero value for the buttons property.
|HTML Attribute||<element onpointerdown = "handler(event)">|
|addEventListener Method||object.addEventListener("pointerdown", handler, useCapture)|
Event handler parameters
- handler [in]
Function to execute when the event is dispatched
- Pointer Events, Section 5.2.2
For mouse, this is when the device has at least one button depressed. For touch, this is when there is physical contact with the digitizer. For pen, this is when the pen has physical contact with the digitizer. For input devices that do not support hover, thepointerover event is fired immediately before the pointerdown event.
Pointer Events do not fire overlapping pointerdown and pointerup events when an additional button is depressed while another button on the pointer device is already depressed. For detecting these cases, see Chorded Button Interactions in the W3C Pointer Events specification.