- From: Mustaq Ahmed via GitHub <sysbot+gh@w3.org>
- Date: Wed, 20 Mar 2024 15:21:29 +0000
- To: public-pointer-events@w3.org
> `pointerleave` isn't fired on a parent element when a child is removed and the pointer is out of the parent's bound. > > [example](https://flems.io/#0=N4IgzgpgNhDGAuEAmIBcIB0sxhAGhADMBLGXVAbVADsBDAWwjUwAt56p8RYB7axfswA61ADxJiANwAExJAF4ACrQBOEfgD4R06crX9t08VNkKAwi1JIt1HTotXDogPQTJNl241dIMBMT5yEABmVABGMJAAXzwaBiZ0DAArXAJefnV4Zj1MjD4ABx5iDP1EFWl5aQAKCEkASnkNdLAeGAwoHgBzKoByfNVM6UyIFR66kREc-jzqQuKymFpJCArq2oamwNaIdq7e-tLpReWxieoHKCQZuZLh8sqqjeBDfN7YS0uhktPbaQurtT0HjLR4iKI+aBweABahBAAs4WisRAdEYzCwOC46QEWXQbmkz1+ACNaLAANadFQ8ACu1CQqGkAGJCAAGFlwgDcYJEjKm8EJOhYEGInTYDOCLPyAA8udQojz-gSXjwwMRoXwGbQiS0oNTELLBcLRfAGQBWSUysEQvzq2HMACciKiAF0okA) (hover over the child, coming from below). > > This is consistent among browsers, but surprising for tracking pointers and "hover" state. This is working as intended. To track "hover" state, `pointerenter` and `pointerleave` are relevant only when `event.eventPhase == Event.AT_TARGET`. -- GitHub Notification of comment by mustaqahmed Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/285#issuecomment-2009831701 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 20 March 2024 15:21:30 UTC