Skip to content

Improve the distance function #3371

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

Closed
frivoal opened this issue Dec 3, 2018 · 1 comment
Closed

Improve the distance function #3371

frivoal opened this issue Dec 3, 2018 · 1 comment
Assignees

Comments

@frivoal
Copy link
Collaborator

frivoal commented Dec 3, 2018


Migrated from WICG/spatial-navigation#114
Originally created by @jihyerish on Thu, 11 Oct 2018 08:34:46 GMT


The distance function in the spec which measures the distance between two elements causes unexpected focus movement.
It needs to consider:

  • Multiple candidate elements are adjacent to the starting point element (currently focused element)
  • Transformed elements
  • The element with rounded corner

So the function needs some experiment for getting the more reasonable result and simplifying.

Also, the function in the polyfill doesn't match exactly with the spec; it needs to be fixed.

@jihyerish
Copy link
Contributor

The issue migration script created some duplicates. So I'll close this issue.

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