This repository was archived by the owner on Feb 11, 2021. It is now read-only.
This repository was archived by the owner on Feb 11, 2021. It is now read-only.
pointerenter and pointerleave work different with their mouse equivalents #197
Closed
Description
In some edge cases polyfilled pointerenter
and pointerleave
events work in a different way comparing to native mouseenter
and mouseleave
events.
In the example http://narqo.github.io/test-pointerevents/test.html *enter
and *leave
handlers are bound to the top "root" element with .test-pointer
css class. Even if such events should not bubble, mouseenter
event fires if user moves the cursor to the coloured area. At the same time pointerenter
event fires only if cursor is moved directly from body to the "root" element (see messages from console.log
).
I haven't tested it with native pointerevents in IE 10+, but this behaviour is the same in desktop versions of Chrome and Firefox.
Metadata
Metadata
Assignees
Labels
No labels