ionic-team / ionic-team/ionic-framework

bug: Ionic Infinite Scroll Not Triggering When Content Doesn't Fill Screen

Ouverte
#30,124 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
triage
Langage dominant
TypeScript
Étoiles
52.7k
Forks
13.3k
Merge moyen
1 j 15 h
PR mergées (30 j)
51

Description

### Prerequisites

- [x] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v7.x

### Current Behavior

ionic infinity scroll not working until the last card touches the end
I mean, I have an API, and fetching it pagewise, 1 page will have 10 item cards, and suppose if the screen is large, those 10 items will occupy half of the screen, so the last card won't touch the screen. It is not filling whole screen so new page won't appear

### Expected Behavior

It supposed to fetch all pages to fulfill the whole screen at a time. If fetching the API works 2 times (20 cards and the last card reaches the end), then it should work like this: Once it touches the end of the screen, then there's no issue.

### Steps to Reproduce

1. Implement an api which supports pagination (e.g. news, blogs, images)
2. Page size should be 2 or 3 (depending on screen and it should not touch the end of the screen)
3. Boom. Here's the bug: The 2nd page won't be fetched by API until you zoom the screen and let last card touch the bottom of the screen.

### Code Reproduction URL

https://web.somenu.digital/tabs/self-ordering/order-home

### Ionic Info

@ionic/angular": "^7.0.0

### Additional Information

_No response_

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start with the reproduction URL and the @ionic/angular v7.x infinite-scroll behavior using the reported paginated API and small page sizes. Check why loading stops when the last card does not reach the screen bottom. Done means subsequent pages load automatically until the viewport is filled, without requiring zooming or resizing.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.