Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve drop down menu handling #499

Closed
tienmai56 opened this issue Mar 5, 2024 · 3 comments
Closed

improve drop down menu handling #499

tienmai56 opened this issue Mar 5, 2024 · 3 comments

Comments

@tienmai56
Copy link

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.
image

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

@patrickhlauke
Copy link
Member

It would be inappropriate to try and address this at the Pointer Events specification level, in my view. This falls heavily under heuristic browser behavior.

@patrickhlauke
Copy link
Member

Discussed at today's meeting https://www.w3.org/2024/03/13-pointerevents-minutes.html

The group agrees that this would be out of scope for the Pointer Events specification, as it involves browser heuristics that each user agent will decide for themselves unfortunately.

@tienmai56
Copy link
Author

@patrickhlauke can you recommend what repo I should open this issue? pointer events group was recommended by some folks from Google. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants