pointerup | onpointerup event
Dispatched when a pointer leaves the state of having a non-zero value for the buttons property.
![]() |
Syntax
| HTML Attribute | <element onpointerup = "handler(event)"> |
|---|---|
| addEventListener Method | object.addEventListener("pointerup", handler, useCapture) |
Event information
| Synchronous | Yes |
|---|---|
| Bubbles | Yes |
| Cancelable | Yes |
Event handler parameters
- handler [in]
-
Type: Function
Function to execute when the event is dispatched
Standards information
- Pointer Events, Section 5.2.3
Remarks
For mouse, this is when the device transitions from at least one button depressed to no buttons depressed. For touch, this is when physical contact is removed from the digitizer. For pen, this is when the pen is removed from physical contact with the digitizer.
For input devices that do not support hover, a pointerout event is also fired immediately after the pointerup event is fired.
Some pointer devices, such as mouse or pen, support multiple buttons. In the DOM Level 3 Events Mouse Event model, each button press produces a mousedown and mouseup 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.
See also
