Skip to content

[BUG] Comparison slider handle is keyboard-focusable but not keyboard-operable #1771

Description

@magic-peach

Bug description
The drag handle in ComparisonPreview.tsx:263-274 is a real <button> with a correct aria-label="Drag to compare original vs reframed", so it's reachable and announced correctly by a screen reader — but it only wires onMouseDown/onTouchStart (:264-265). There's no onKeyDown, so once focused, Enter/Space/arrow keys do nothing.

Steps to reproduce

  1. Open the before/after comparison view
  2. Tab to the "Drag to compare" handle (it does receive focus)
  3. Press arrow keys or Enter — nothing happens

Expected behavior
Arrow keys should move the comparison slider position, matching the pattern in TrimControl.tsx's handles (ArrowLeft/ArrowRight adjusting the value).

Actual behavior
The control is reachable but inert from the keyboard.

Browser and OS info
Any.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

accessibilityAccessibility improvement (a11y)bugSomething isn't working correctlygssoc'26GirlScript Summer of Code 2026level:beginnerBeginner level - 20 ptstype:accessibilityAccessibilitytype:bugBug fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions