Skip to content

Commit

Permalink
fix(core): don't try to move slider when it is locked
Browse files Browse the repository at this point in the history
fixes #4284
  • Loading branch information
nolimits4web committed Mar 2, 2021
1 parent 7b7cccf commit 51fd048
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/core/events/onTouchMove.js
Expand Up @@ -185,6 +185,9 @@ export default function onTouchMove(event) {
) {
data.currentTranslate = data.startTranslate;
}
if (!swiper.allowSlidePrev && !swiper.allowSlideNext) {
data.currentTranslate = data.startTranslate;
}

// Threshold
if (params.threshold > 0) {
Expand Down

0 comments on commit 51fd048

Please sign in to comment.