Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Feb 12, 2025
2 parents c521888 + c0d3ece commit 59bfcdb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/copy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"./scss/parallax": "./modules/parallax.scss",
"./scss/scrollbar": "./modules/scrollbar.scss",
"./scss/thumbs": "./modules/thumbs.scss",
"./scss/vars": "./swiper-vars.scss",
"./scss/virtual": "./modules/virtual.scss",
"./scss/zoom": "./modules/zoom.scss",
"./element": {
Expand Down
1 change: 0 additions & 1 deletion src/core/loop/loopFix.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export default function loopFix({
if (isPrev) {
prependSlidesIndexes.forEach((index) => {
slides[index].swiperLoopMoveDOM = true;

slidesEl.prepend(slides[index]);
slides[index].swiperLoopMoveDOM = false;
});
Expand Down
4 changes: 4 additions & 0 deletions src/swiper-element.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ class SwiperSlide extends ClassToExtend {
}

connectedCallback() {
if (this.swiperLoopMoveDOM) {
return;
}

this.initialize();
}
}
Expand Down

0 comments on commit 59bfcdb

Please sign in to comment.