WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Need for Increment Buttons?

for

From: Patrick H. Lauke
Date: Dec 14, 2018 7:48AM


On 14/12/2018 14:15, Brandon Keith Biggs wrote:

> Wow, you're right, why doesn't either the slider or input number box adjust
> the value with swipe up and down, it should.

The role="slider" exposes it as if it were a real slider (i.e. an <input
type="range">) - which triggers VoiceOver/Talkback to give their usual
hints (use swipe/use volume keys). However, as it's not a real actual
slider, performing those actions by themselves has no effect. From
JavaScript, you can't detect volume key presses on Android. And while
you can detect touchscreen events (and therefore swipes), when AT is
running those gestures are consumed directly by the AT and not passed to
the page/JavaScript (unless you use a passthrough gesture like
double-tap-and-hold).

This sort of thing was mentioned/documented a while ago in
https://www.w3.org/TR/using-aria/#aria-touch

This is one of the scenarios that is hoped will be improved once we have
the Accessibility Object Model (AOM) https://wicg.github.io/aom/spec/
and in particular the related input event types
https://wicg.github.io/aom/spec/input-events.html

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke