This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

pointerup

Summary

Dispatched when a pointer leaves the state of having a non-zero value for the buttons property.

Overview Table

Synchronous Yes
Bubbles Yes
Target dom/Element
Cancelable Yes
Default action Varies: when the pointer is primary, all default actions of the [mouseup](/dom/MouseEvent/mouseup) event
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 user agent must also fire a pointerout event after firing the pointerup event.

Examples

element.addEventListener("pointerup", handler, useCapture) ;

Notes

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 PointerEvents specification.

Related specifications

Pointer Events
Working Draft

Attributions