The pointerup
event is fired when a pointer is no longer active.
Bubbles | Yes |
---|---|
Cancelable | Yes |
Interface | PointerEvent |
Event handler property | onpointerup |
The pointerup
event is fired when a pointer is no longer active.
Bubbles | Yes |
---|---|
Cancelable | Yes |
Interface | PointerEvent |
Event handler property | onpointerup |
Using addEventListener()
:
const para = document.querySelector('p'); para.addEventListener('pointerup', (event) => { console.log('Pointer up'); });
Using the onpointerup
event handler property:
const para = document.querySelector('p'); para.onpointerup = (event) => { console.log('Pointer up'); };
Specification |
---|
Pointer Events # the-pointerup-event |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
pointerup_event |
55 |
12
12-79
|
59 |
11
10
|
42 |
13 |
55 |
55 |
79 |
42 |
13 |
6.0 |
gotpointercapture
lostpointercapture
pointerover
pointerenter
pointerdown
pointermove
pointercancel
pointerout
pointerleave
onpointerup
event handler propertyDocument
targets: pointerup
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/pointerup_event