swiper: watchOverflow and loop

When you have one image/element/slide, watchOverflow: true hides the navigation and pagination as expected. However, if you also have loop: true (because you want it to loop in instances where there is more than one slide), watchOverflow no longer has any effect. I guess the watchOverflow calculation isn’t done before the additional/duplicate slides are inserted for the loop effect.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 25
  • Comments: 18 (1 by maintainers)

Most upvoted comments

Work-around:

loop: slidesCount > 1,
watchOverflow: true

You have to get slidesCounts yourself, as you want.

Same for me. Loop always duplicates slides even number of slides less than slidesPerView. This is very big problem for me. @nolimits4web any update ?

Unfortunately, @nolimits4web explained in #2900 this is considered a feature, so I wouldn’t expect it to change anytime soon. In my humble opinion, I can’t se any use case in which you want to have three same images looping around and it remained me of this picture instead (no offence here, I still LOVE this library). bug-vs-feature

Any news? It’s a big problem 😦