E-mail List Archives

Re: why is everything "clickable" in NVDA

for

From: Patrick H. Lauke
Date: May 26, 2017 3:06AM


On 26/05/2017 09:45, Tim Harshbarger wrote:
> Yes, if NVDA reports everything as clickable, it is most likely because there is a click event associated with the body element.

To expand a bit on this, that's most commonly found in certain
JavaScript frameworks that use what's called "event delegation": instead
of attaching lots of separate click handlers throughout the page, these
frameworks rely on clicks bubbling up to the the body, and then
disambiguate there which element was actually clicked ... so you have a
single click handler that deals with every interaction on the page,
rather than a myriad of tiny click handlers everywhere.

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