Document: pointerup event
The pointerup
event is fired when a pointer is no longer active.
Bubbles | Yes |
---|---|
Cancelable | Yes |
Interface | PointerEvent |
Event handler property | onpointerup |
Examples
Using addEventListener()
:
document.addEventListener('pointerup', (event) => {
console.log('Pointer up');
});
Using the onpointerup
event handler property:
document.onpointerup = (event) => {
console.log('Pointer up');
};
Specifications
Specification |
---|
Pointer Events # the-pointerup-event |
Browser compatibility
BCD tables only load in the browser
See also
gotpointercapture
lostpointercapture
pointerover
pointerenter
pointerdown
pointermove
pointercancel
pointerout
pointerleave
onpointerup
event handler property- This event on
HTMLElement
targets:pointerup
event