Skip to content

Commit

Permalink
fix(core): fix issue with allowSlideNext in RTL mode
Browse files Browse the repository at this point in the history
fixes #6737
  • Loading branch information
nolimits4web committed Jun 7, 2023
1 parent 609257c commit d61da52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/slide/slideTo.js
Expand Up @@ -65,8 +65,9 @@ export default function slideTo(
if (swiper.initialized && slideIndex !== activeIndex) {
if (
!swiper.allowSlideNext &&
translate < swiper.translate &&
translate < swiper.minTranslate()
(rtl
? translate > swiper.translate && translate > swiper.minTranslate()
: translate < swiper.translate && translate < swiper.minTranslate())
) {
return false;
}
Expand Down

0 comments on commit d61da52

Please sign in to comment.