Skip to content

Commit

Permalink
fix(virtual): fix leaked effects translate when Virtual enabled
Browse files Browse the repository at this point in the history
fixes #5588
  • Loading branch information
nolimits4web committed Apr 15, 2022
1 parent a7757b0 commit a0e8dd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/effect-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default function effectInit(params) {

let requireUpdateOnVirtual;
on('virtualUpdate', () => {
if (swiper.params.effect !== effect) return;
if (!swiper.slides.length) {
requireUpdateOnVirtual = true;
}
Expand Down

0 comments on commit a0e8dd4

Please sign in to comment.