question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat: improve component compatibility with virtual scrolling solutions

See original GitHub issue

Feature Request

Ionic version:

[x] 5.x

Describe the Feature Request

At the moment, components such as ion-refresher, ion-infinite-scroll, and the collapsible large title rely on users scrolling on ion-content. As a result, when scrolling in a virtual scroll container, these components do not work as expected. While we cannot account for every single virtual scrolling solution, I think we can expose an API that lets users have more control over which scrollable container these components listen on.

This impacts solutions like CDK Scroller, Virtuoso, vue-virtual-scroller, etc.

For developers that would like to see this feature added to the Framework, please react to this post with a thumbsup/“+1” reaction. Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:41
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ghenry22commented, Sep 3, 2021

It would be great if you could also validate that ion-reorder works with these alternative scrollers. It is currently broken when used with ion-virtual-scroll but the bug reporting this was closed “because virtual-scroll will be deprecated”.

0reactions
liamdebeasicommented, Mar 18, 2022

Hi everyone,

@sean-perkins has done a tremendous job adding new functionality to improve Ionic component compatibility with virtual scrolling solutions via https://github.com/ionic-team/ionic-framework/commit/2a438da010ddd4d4211e1879e27d7b28409daaa2. The code for this has been merged, and we are looking to ship this new feature in an upcoming minor release of Ionic.

When this feature ships, expect to see new documentation that will show you how to update your apps for this new compatibility. We have a work in progress PR with the new docs changes: https://github.com/ionic-team/ionic-docs/pull/2229

I am going to close this. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic 6.1: Improved Virtual Scroll Compatibility
Ionic Framework 6.1 improves built-in feature compatibility for features such as fade header/footers, infinite scroll and item reordering with  ...
Read more >
4 Ways to Listen to Page Scrolling for Dynamic UI in Angular ft ...
Some ideas based on window scrolling. Animations/Transitions; UI component — Scrolled percentage/reading progress, relative to total available ...
Read more >
Virtual scrolling: Core principles and basic implementation in ...
In this tutorial, we'll go over the basics and learn how to create a reusable React component to solve the simplest virtual scrolling...
Read more >
Building infinite virtual scrolling lists with the new Angular 7 CDK
Build infinite virtual scrolling lists using the Angular 7 CDK. This tutorial will introduce you to the Angular Component Development Kit, ...
Read more >
VMware Compatibility Guide - System Search
VMware FT creates virtual machine 'pairs' that run in lock step - mirroring the execution state of a VM. Support of VMware FT...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found