File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export const updateOnVirtualData = (swiper) => {
99 swiper . updateSlides ( ) ;
1010 swiper . updateProgress ( ) ;
1111 swiper . updateSlidesClasses ( ) ;
12+ swiper . emit ( '_virtualUpdated' ) ;
1213 if ( swiper . parallax && swiper . params . parallax && swiper . params . parallax . enabled ) {
1314 swiper . parallax . setTranslate ( ) ;
1415 }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export default function effectInit(params) {
2323 Object . assign ( swiper . params , overwriteParamsResult ) ;
2424 Object . assign ( swiper . originalParams , overwriteParamsResult ) ;
2525 } ) ;
26- on ( 'setTranslate' , ( ) => {
26+ on ( 'setTranslate _virtualUpdated ' , ( ) => {
2727 if ( swiper . params . effect !== effect ) return ;
2828 setTranslate ( ) ;
2929 } ) ;
You can’t perform that action at this time.
0 commit comments