From c8e22f7a3e2aa2aa5f2f1a6b1e131473d63c1c46 Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Mon, 3 Oct 2022 15:47:56 +0300 Subject: [PATCH] fix(a11y): don't focus slide on slide inner elements clicks fixes #6116 --- src/modules/a11y/a11y.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/a11y/a11y.js b/src/modules/a11y/a11y.js index 3adf078b9..24f5e3803 100644 --- a/src/modules/a11y/a11y.js +++ b/src/modules/a11y/a11y.js @@ -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) => {