We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a055457 commit 33be36dCopy full SHA for 33be36d
src/components/slides/swiper/swiper-pagination.ts
@@ -63,8 +63,9 @@ export function updatePaginationClasses(s: Slides) {
63
64
// Types
65
if (s.paginationType === 'bullets' && s._bullets) {
66
+ var selector = current + ( current < 0 ? s._bullets.length : 0 );
67
for (var i = 0; i < s._bullets.length; i++) {
- if (i === current) {
68
+ if (i === selector) {
69
addClass(s._bullets[i], CLS.bulletActive);
70
} else {
71
removeClass(s._bullets[i], CLS.bulletActive);
0 commit comments