Skip to content

Navigating on mouse down is bad for accessibility #49

@joshuajaco

Description

@joshuajaco

Navigating on mouse down instead of mouse up is bad for accessibility for several reasons:

  1. It breaks the ability to drag and drop links.
  2. You cannot "cancel" the navigation. (I often click something and, before releasing, realize I wanted to click something else.)
  3. It can cause scrolling issues on mobile, where I only want to scroll but accidentally trigger navigation.

People expect links to work on mouse up and have adapted their workflows accordingly.

Relevant code: https://github.com/ethanniser/NextMaster/blob/24f8acae72bfb1bb7969b86b002f3a2a9c3cdc06/src/components/ui/link.tsx#L105

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions