Skip to content
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

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

Open
3 tasks done
dhruvlathia opened this issue Jan 9, 2025 · 0 comments
Open
3 tasks done
Labels

Comments

@dhruvlathia
Copy link

dhruvlathia commented Jan 9, 2025

Prerequisites

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

@ionitron-bot ionitron-bot bot added the triage label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant