We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://codesandbox.io/p/sandbox/swiper-infinite-loop-forked-qw3n85?file=%2Findex.html%3A87%2C20
slideChange
realIndex
The console output like
0 seconds, slide 0 6 seconds, slide 1 12 seconds, slide 2 18 seconds, slide 0 24 seconds, slide 1 30 seconds, slide 2
0 seconds, slide 0 6 seconds, slide 0 12 seconds, slide 1 18 seconds, slide 1 24 seconds, slide 2 30 seconds, slide 2
The slide only change one in two times.
11.2.0
windows edge
it seems cause by early return here
swiper/src/core/slide/slideTo.mjs
Line 148 in de9af3e
The loopFix.js calls slideTo to fix slide position. And slideTo is supposed to fix the translate of swiper
loopFix.js
slideTo
translate
Lines 150 to 151 in de9af3e
But due to the early return in cssMode, these lines are completely skipped.
cssMode
Hence the slideTo choke at the next time called by autoPlay .js at
autoPlay .js
Line 98 in de9af3e
The text was updated successfully, but these errors were encountered:
8180a52
Successfully merging a pull request may close this issue.
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/swiper-infinite-loop-forked-qw3n85?file=%2Findex.html%3A87%2C20
Bug description
slideChange
handler with time andrealIndex
logged.Expected Behavior
The console output like
0 seconds, slide 0
6 seconds, slide 1
12 seconds, slide 2
18 seconds, slide 0
24 seconds, slide 1
30 seconds, slide 2
Actual Behavior
The console output like
0 seconds, slide 0
6 seconds, slide 0
12 seconds, slide 1
18 seconds, slide 1
24 seconds, slide 2
30 seconds, slide 2
The slide only change one in two times.
Swiper version
11.2.0
Platform/Target and Browser Versions
windows edge
Validations
Would you like to open a PR for this bug?
Note
it seems cause by early return here
swiper/src/core/slide/slideTo.mjs
Line 148 in de9af3e
The
loopFix.js
callsslideTo
to fix slide position.And
slideTo
is supposed to fix thetranslate
of swiperswiper/src/core/slide/slideTo.mjs
Lines 150 to 151 in de9af3e
But due to the early return in
cssMode
, these lines are completely skipped.Hence the
slideTo
choke at the next time called byautoPlay .js
atswiper/src/core/slide/slideTo.mjs
Line 98 in de9af3e
due to incorrect swiper.translate
The text was updated successfully, but these errors were encountered: