pointerleave | onpointerleave event
Dispatched when a pointing device is moved outside of the hit test boundaries of an element or one of its descendants, including as a result of a pointerdown event from a device that does not support hover. This event type is similar to pointerout, but differs in that it does not bubble.
![]() |
Syntax
| HTML Attribute | <element onpointerleave = "handler(event)"> |
|---|---|
| addEventListener Method | object.addEventListener("pointerleave", handler, useCapture) |
Event information
| Synchronous | Yes |
|---|---|
| Bubbles | No |
| Cancelable | Yes |
Event handler parameters
- handler [in]
-
Type: Function
Function to execute when the event is dispatched
Standards information
- Pointer Events, Section 5.2.9
Remarks
There are similarities between this event type, the mouseleave event and the CSS :hover pseudo-class. See also the pointerenter event.
See also
Show:
