flickity icon indicating copy to clipboard operation
flickity copied to clipboard

Fix/stop autoplay on focus

Open acnorrisuk opened this issue 4 years ago • 0 comments

A carousel set to autoplay does not stop when it is focused. This is an issue for screen reader and other keyboard users who can't prevent this via hovering with a mouse. See WAI-ARIA Authoring Practices.

This PR stops the carousel when it has focus or one of the buttons has focus and resumed autoplaying when these are blurred.

acnorrisuk avatar Oct 22 '19 14:10 acnorrisuk