Skip to content
New issue

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

Some image still default when using with ngx-swiper-wrapper #550

Open
MrHOY opened this issue Jun 12, 2022 · 2 comments
Open

Some image still default when using with ngx-swiper-wrapper #550

MrHOY opened this issue Jun 12, 2022 · 2 comments

Comments

@MrHOY
Copy link

MrHOY commented Jun 12, 2022

Version:
"ng-lazyload-image": "^9.1.1",
"ngx-swiper-wrapper": "^10.0.0",
"@angular/*": "13.0.2"
"rxjs": "6.6.0",

I used ngx-swiper-wrapper directive to show list image, but some image still show image default instead of lazyload

component.html:

<div class="swiper-responsive-breakpoints swiper-container" [swiper]="swiperResponsive">
     <div class="swiper-wrapper">
          <div  class="swiper-slide swiper-slide-gallery relative" *ngFor="let item of galleries">
              <img
                class="img-gallery"
                [defaultImage]="'assets/images/loading-image.gif'"
                [lazyLoad]="item?.image?.image_s3_url"
                [scrollObservable]="scrollObservable"
                alt="banner"
              />
           </div>
       </div>
   </div>

I try set :
this.scrollObservable = fromEvent(document.getElementsByClassName('swiper-container')[0], 'slideNextTransitionEnd');

but it doesn't work anymore

@tjoskar
Copy link
Owner

tjoskar commented Jul 21, 2022

Hi @MrHOY,
Is it possible for you to create a small project where you can reproduce this issue?

@AndreBezBirolo
Copy link

Put the loop: false;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants