Skip to content

Commit

Permalink
fix(core): don't prevent focusable elements click when `allowTouchMov…
Browse files Browse the repository at this point in the history
…e: false`

fixes #5358
  • Loading branch information
nolimits4web committed Jan 25, 2022
1 parent faeb14a commit f0eac04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/events/onTouchMove.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ export default function onTouchMove(event) {
return;
}
if (!swiper.allowTouchMove) {
// isMoved = true;
swiper.allowClick = false;
if (!$(e.target).is(data.focusableElements)) {
swiper.allowClick = false;
}
if (data.isTouched) {
Object.assign(touches, {
startX: pageX,
Expand Down

0 comments on commit f0eac04

Please sign in to comment.