[pointerevents] improve drop down menu handling (#499)

tienmai56 has just created a new issue for https://github.com/w3c/pointerevents:

== improve drop down menu handling ==
When using touch to access hyperlinked menu that is designed to expand further into sub-menus, the entire menu opens for a split second and then web users are directed to the main menu's page. This happens in websites such as Ebay, USPS, etc. 
<img width="406" alt="image" src="https://github.com/w3c/pointerevents/assets/35861383/15635be6-7b8f-4743-94cb-ce771c34753d">

This is because when the sticky hover logic is invoked on anchor tags or on elements that are otherwise clickable, navigation is not cancelled.  Safari fixes this behavior by determining whether any child element of the element that appeared is clickable. If so, they'll cancel the navigation and treat the tap as a hover. If not, they'll continue with the navigation/executing the click handler. 

Should we consider matching Safari's behavior? I think we should consider this for good compatibility with Safari and existing web content that's never going to get updated to be mobile-friendly

Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/499 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 5 March 2024 07:27:52 UTC