toodego: a11y, stop autorefresh when a carrousel arrow gets focus (#34675)
This commit is contained in:
parent
d2d946cc4d
commit
c68621c8b1
|
@ -52,6 +52,12 @@ $(function() {
|
|||
}
|
||||
return false;
|
||||
});
|
||||
$('a.carrousel-left, a.carrousel-right').on('focus', function() {
|
||||
// stop autorefresh when an arrow gets focus, so it can be navigated with
|
||||
// a keyboard more easily.
|
||||
clearInterval(timeout_id);
|
||||
return false;
|
||||
});
|
||||
$('a.carrousel-left').on('click', function() {
|
||||
clearInterval(timeout_id);
|
||||
previous();
|
||||
|
|
Loading…
Reference in New Issue