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

Browser compatibility

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
29
11
10
42
13
55
55
79
29
42
13
6.0

See also

© 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/Document/pointerup_event