pointerenter
Summary
Dispatched when a pointing device is moved into 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.
Overview Table
| Synchronous | Yes |
|---|---|
| Bubbles | No |
| Target | dom/Element |
| Cancelable | Yes |
| Default action | Varies: when the pointer is primary, all default actions of the [mouseenter](/dom/MouseEvent/mouseenter) event. |
Examples
element.addEventListener("pointerenter", handler, useCapture) ;
Notes
There are similarities between this event type, the mouseenter event described in DOM Level 3 Events and the CSS :hover pseudo-class described in CSS 2.1. See also the pointerleave event.
Related specifications
- Pointer Events
- Working Draft
Attributions
Microsoft Developer Network: [pointerenter Event Article]