Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Rephrase "select the best candidate" to "find closest focusable area"? #30

Closed

Description

@hugoholgersson

The word select makes me think of text selections.

Best is a vague word. The best element is always the closest element, right?

Maybe calling the JS method something like closestFocusableArea() would help authors understand the API better?

Activity

  1. frivoal commented on Feb 19, 2018

    @frivoal
    Collaborator

    The best element is always the closest element, right?

    Sort of. It is "the closest", but according to a somewhat weird distance function that takes direction and overlap into account. (whether the current distance function is idea is another interesting question, but the point remains that it is not necessarily a simple euclidean distance).

    Not sure whether it is better to say "best" and let people wonder "best based on what", or to say closest and give an approximately correct idea, but risk have people assume it means closest by euclidean distance, which is not what it is.

  2. frivoal commented on Feb 19, 2018

    @frivoal
    Collaborator

    The word select makes me think of text selections.

    Right, that seems unfortunate indeed. I attempting to use it to mean "narrow down from an explicit list", to reinforce the idea that it is step 2, after finding the candidates. But suggesting text selections is possibly worse.

  3. frivoal commented on Mar 22, 2018

    @frivoal
    Collaborator

    closed by aadb72d

  4. added
    type:bug
    closed:resolved
    on Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed:resolvedtopic:spectype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions