orizens / ngx-infinite-scroll

Infinite Scroll Directive for Angular
https://www.npmjs.com/package/ngx-infinite-scroll
MIT License
1.23k stars 224 forks source link

Scroll events not fired when using Chrome devtools device mode #422

Closed Splinteer closed 1 month ago

Splinteer commented 1 year ago

I'm on Angular 16 with the 16th version of the package. I was on Angular 14 but upgraded my app to match the latest version of the ngx-infinite-scroll package.

The issue is happening on the 14, 15 and 16 versions.

Here is my script:

<div
  class="grid"
  infiniteScroll
  [infiniteScrollDistance]="1"
  [infiniteScrollThrottle]="2"
  (scrolled)="onScroll()"
>
  <h1 *ngIf="!shop" translate>FLASH.LIST.title_shop</h1>
  <app-flash-item
    [flash]="flash"
    *ngFor="let flash of flashs$ | async; trackBy: trackByIdx"
  >
  </app-flash-item>
</div>

It is working without using the device mode