Skip to content

Commit

Permalink
fix(a11y): don't focus slide on slide inner elements clicks
Browse files Browse the repository at this point in the history
fixes #6116
  • Loading branch information
nolimits4web committed Oct 3, 2022
1 parent 708133d commit c8e22f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/a11y/a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ export default function A11y({ swiper, extendParams, on }) {
swiper.a11y.clicked = true;
};
const handlePointerUp = () => {
swiper.a11y.clicked = false;
requestAnimationFrame(() => {
requestAnimationFrame(() => {
swiper.a11y.clicked = false;
});
});
};

const handleFocus = (e) => {
Expand Down

0 comments on commit c8e22f7

Please sign in to comment.