diff --git a/src/modules/infinite-scroll.directive.ts b/src/modules/infinite-scroll.directive.ts index 0cea3867..3de1ec5f 100644 --- a/src/modules/infinite-scroll.directive.ts +++ b/src/modules/infinite-scroll.directive.ts @@ -43,8 +43,8 @@ export class InfiniteScrollDirective this.setup(); } - ngOnChanges({ infiniteScrollContainer }: SimpleChanges) { - if (inputPropChanged(infiniteScrollContainer)) { + ngOnChanges({ infiniteScrollContainer, infiniteScrollDistance }: SimpleChanges) { + if (inputPropChanged(infiniteScrollContainer) || inputPropChanged(infiniteScrollDistance)) { this.destroyScroller(); this.setup(); }