nolimits4web / swiper

Most modern mobile touch slider with hardware accelerated transitions
https://swiperjs.com
MIT License
39.96k stars 9.75k forks source link

slideNext and slidePRev doesn't work... #7373

Closed SiebeBaree closed 8 months ago

SiebeBaree commented 8 months ago

Check that this is really a bug

Reproduction link

https://codesandbox.io/p/devbox/practical-mclaren-vhx6v9

Bug description

I tried making my own navigation for swiper but it doesn't work... I know it can work with svelte because "Decathlon.be" uses it. When I console log the swiperObject I don't see any methods for slideNext and slidePrev. Also when I enable the loop: true option it tells me "Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters" but even when I add 15+ slides it still gives me this warning. (My slides per view is 1 and I've not defined slides per group)

Expected Behavior

No response

Actual Behavior

No response

Swiper version

11.0.7

Platform/Target and Browser Versions

macOS Arc

Validations

Would you like to open a PR for this bug?

nolimits4web commented 8 months ago

Do you want to ask a question? Are you looking for support? Stack Overflow or Swiper Discussions is the best places for getting support

Please, don't use GitHub issues for questions