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
Does not work with Perfect Scrollbar plugin. #275
Comments
I set up a quick Angular 5 app, seems to be working fine for me - https://stackblitz.com/edit/angular-9guzc4?embed=1&file=app/app.component.html If your images are in a separate scroll container, you'll need to use |
@vugar005, I see that your outer div has |
@sapierens @tjoskar. Thanks. Solved the issue by adding Scroll Target. But the plugin is not compatible with perfect scrollbar.
Changed perfect scrollbar to div with overflow auto and it works as expected but I want to keep perfect scrollbar. So what I did is:
So by assigning this.scroll to document.getElementById('main_content').children[0]; Problem is fully solved. |
I have never used <img [defaultImage]="'assets/icons/user.svg'"
[lazyLoad]="employee.imgUrl"
[useSrcset]="true"
[scrollObservable]="perfectScrollbar$"> |
@tjoskar Unfortunately that did not work. |
Can you create a small gitrepo/stackblitz/plnkr where you can reproduce the problem? |
okay I will add to stackblitz soon and share here. |
Please have a look at stackblitz demo: |
I managed to get it to work like this - https://stackblitz.com/edit/angular-zovu45 It's also possible to solve it like @tjoskar suggested in #275 (comment), but you'd have to use perfect-scrollbar as a directive instead of a component for it to work (https://github.com/zefoy/ngx-perfect-scrollbar#installing-and-usage under DIRECTIVE USAGE). |
@sapierens Yes It works too. I use perfect scrollbar in almost every project. That's why it was import for me to get it work.Thanks. |
Hi
When page is first loaded the images are downloaded but when I scroll down the images are not downloading. Seems like event is not firing.
Angular version: 5.1.2
"ng-lazyload-image": "^3.4.2",
Hope you solve problem.
Thanks
The text was updated successfully, but these errors were encountered: