@sumaris-net/ngx-components 2.4.12-rc3 → 2.4.12-rc4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/app/social/user-event/notification/user-event-notification.list.mjs +9 -3
- package/fesm2015/sumaris-net.ngx-components.mjs +9 -2
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +8 -2
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -31625,9 +31625,15 @@ class UserEventNotificationList {
|
|
|
31625
31625
|
this._fetchMoreSubscription.unsubscribe();
|
|
31626
31626
|
threshold = threshold || (this.mobile ? '15%' : '2%');
|
|
31627
31627
|
await waitFor(() => !!this.ionContent, { dueTime: 250, timeout: 1000 });
|
|
31628
|
-
|
|
31628
|
+
let panel = await this.ionContent.getScrollElement();
|
|
31629
|
+
if (panel) {
|
|
31630
|
+
const child = panel.firstChild;
|
|
31631
|
+
if (child instanceof HTMLSlotElement) {
|
|
31632
|
+
panel = child.assignedElements()?.[0];
|
|
31633
|
+
}
|
|
31634
|
+
}
|
|
31629
31635
|
// Trigger fetch more, end end scroll reached
|
|
31630
|
-
this._fetchMoreSubscription = this.$items.pipe(debounceTime(250), filter(() => this.canFetchMore), switchMap(() => fromScrollEndEvent(panel, threshold, 250 /*force to check when no scrollbar - e.g. in large screen*/)))
|
|
31636
|
+
this._fetchMoreSubscription = this.$items.pipe(debounceTime(250), filter(() => this.canFetchMore && !!panel), switchMap(() => fromScrollEndEvent(panel, threshold, 250 /*force to check when no scrollbar - e.g. in large screen*/)))
|
|
31631
31637
|
.subscribe(() => this.fetchMore());
|
|
31632
31638
|
this._subscriptions.add(this._fetchMoreSubscription);
|
|
31633
31639
|
}
|