ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

VirtualScroll Issue Round Up

Open ghenry22 opened this issue 10 years ago • 58 comments

I have run through all open tickets relating to virtualscroll and have compiled this list. Those tickets that still need action (unless otherwise noted) can still be reproduced. I have clearly listed duplicate tickets and tickets for issues that I can no longer reproduce with ionic2 RC1.

Hopefully this helps to clean up the open issues and can be used as a focus to target those virtualscroll issues that still exist. Most of these issues relate to ios uiwebview, although some are across all platforms.

Issues Confirmed Still Present in 3.4.2 #7734 - virtualscroll shows blank screen when used inside an ion-segment (or other conditional such as *ngIf) #9765 - refresher component does not work with virtualscroll lists (with ionic 3.4.2 refresher cannot even be triggered if there is a virtual scroll list, cannot pull down properly) #9975 - ScrollToTop and ScrollTo(x,y) does not work on virtualscroll list with uiwebview. create a list, add a button that will scroll to top or a to a specific location. Scroll down the list and hit the button. The display of the list will either flicker or show part of the items at the scroll destination. As soon as you try to scroll again the list display refreshes to be back where you were before pressing the button. So essential scrollTo functions do nothing. (uiwebview). This was closed but is still definitely present. #9935 - filtering a virtualscroll list does not refocus the view port on the new list content. This issue is still present but has slightly different symptoms. I have updated the ticket with testing from v3.4.2 #12649 - using ItemSliding with VirtualScroll causes multilpe items to be slid open at once

To be confirmed (I haven't had time to test this one yet) #11788 - When using virtual scroll with infinite scroll, when infinite scroll appends new items to the end of the list the list flickers and jumps slightly up or down.

Issue Confirmed Fixed/cannot reproduce in 3.4.2 (issues that can be closed)

Click on Details to see the fixed issues

#6999 - I believe this should be the same issue as #8267, until there is a small extra scroll not all items render after scrolling stops. #8142 - Can be closed, tags not present, adding resolved the issue. #8032 - Can be closed, references issue #7734, otherwise I have tested and custom components do work in virtual scroll as of RC0, image rendering of avatars inside virtualscroll is also logged under #6983 which addresses all points referenced here. #7135 - Can be closed, virtualscroll list overlapped by header and footer. Cannot reproduce in RC0 #7116 - Can be closed, there were commits by @manucorporat which resolved this already, I can confirm that I use sliding items in large virtual scroll list and they animate and work nicely currently in RC0. #6883 - Can be closed, initial scroll performance greatly improved, remaining issues with scroll acceleration covered in #6984 #6984 - Referred to above, also closed for scroll related performance. Issue related to ion-refresher is logged under #9765 #8267 - virtualscroll update after scrolling stops (otherwise a blank screen is shown until a small further movement is made) #6961 - Can be closed, cannot reproduce on either ios, android or browser in RC0 #8037, #7056, #7024, #6423 (duplicates) - virtualscroll automatically scrolls to top of list on data change. Position should remain the same with the removed or added item included. #7947 - virtualscroll inside modal not contained to viewport on iOS, long lists run off the screen #6984 - virtualscroll on ios9 or earlier, refresher conflicts with scroll, when swiping down refresher is always triggered regardless of position in list. Means you can only scroll in one direction. Scroll acceleration also feels VERY slow compared to other platforms. No issue on android, also no issue with wkwebview and slightly better on ios10 with UIWebview. #6983 - ion-img in virtualscroll with ion-avatar results in corrupted image display. #6881 - custom component as virtualItem in virtualScroll leads to corrupted layout. There is a work around stated in the comments on this issue which could be added to the docs to address this. #6974 - virtualscroll inside ion-slide results in incorrect layout (I have not been able to test this one personally) #6512 - virtualscroll does not redraw when the list is updated to be empty. ie when search filter returns 0 results the list is not updated to show an empty list. #6394 - ios list does not bounce when using virtualscroll. Makes it feel VERY non-native. ngfor or static lists bounce as expected.

ghenry22 avatar Oct 17 '16 00:10 ghenry22

@ghenry22 This is awesome! Thanks for putting this together. I am going over this now.

jgw96 avatar Oct 17 '16 15:10 jgw96

@ghenry22 thanks so much!!! this is amazing, I will start working on this and picker/datetime once all the mayor navigation issues are fixed

manucorporat avatar Oct 18 '16 00:10 manucorporat

great work! virtual scoll has so much performance potential yet is not cared enough.

comfortme avatar Oct 18 '16 06:10 comfortme

@manucorporat @jgw96 No problem I thought I would try and help clean up some of the open issues and make it easier to focus on what is outstanding with virtualscroll.

ghenry22 avatar Oct 19 '16 01:10 ghenry22

@manucorporat @jgw96 could this please get pulled into either RC3 or RC4?

I know it's pre-release but virtualscroll has been very broken on ios since it was released as a feature. It would be really great to get it at least usable and close to on par with android.

ghenry22 avatar Nov 07 '16 06:11 ghenry22

Hello @ghenry22 ! We have added #8267 to the rc3 milestone and will be working through these issues as we get closer to stable and after stable. Thanks!

jgw96 avatar Nov 07 '16 09:11 jgw96

I just (re-)opened an issue concerning virtual scroll: #9247

Ritzlgrmft avatar Nov 20 '16 10:11 Ritzlgrmft

Another virtual scroll issue: #9350

Ritzlgrmft avatar Nov 25 '16 12:11 Ritzlgrmft

Just started testing virtualscroll with RC4 as I saw there were some commits related to it. Unfortunately a lot of these issues still remain and some are even worse.

Scroll acceleration is now horrible in UIWebview on IOS. Very laggy and slow, far worse than in rc3.

Conflict with ion-refresher is still present on UIWebview on IOS. At any point if you swipe down (regardless of position in list) the refresher triggers. Previously this was annoying as it would reload the list data. In rc4, the whole app becomes unresponsive, it uses up all the memory available and then crashes.

So for an app using iOS with ion-refresher and virtualscroll it is still not possible to scroll a list up and down in RC4. Surely when talking about ionic components, nothing unusual and in RC stage this level of issue should be considered quite major? I know it's still pre-release and that's no problem. I'd just love to be able to start testing my app on ios properly and sharing the beta with people.

I would love to help the ionic team to get virtualscroll playing nice. I am happy to test changes or new builds against my app as fast as they can be released, I will spend as much of my time as needed to help.

Can someone PLEASE, PLEASE, PLEASE work on this?

ghenry22 avatar Dec 19 '16 04:12 ghenry22

Any update on this? Just tried using it today, and had many many problems

AmitMY avatar Feb 20 '17 18:02 AmitMY

unfortunately I have not seen any updates to virtual scroll since about RC4. Hopefully the team will be able to put some focus onto in soon as it is driving me a bit nuts. It makes it really hard to get an ionic2 app live in a state that doesn't generate negative feedback with unpredictable list handling.

ghenry22 avatar Feb 21 '17 00:02 ghenry22

@manucorporat did make an awesome update to the wkwebview plugin though which allows you to access locally stored persistent storage so I was able to move to using that which resolved some of the harsher issues so I could actually publish my app in a reasonable state.

ghenry22 avatar Feb 21 '17 00:02 ghenry22

Virtual scroll definitely needs some attention. As you said, @ghenry22, it is very difficult to release an ionic2 app that handles a lot of data with long lists without it. Could the ionic team give some updates on virtual scrolling in general, perhaps a road map? @jgw96 @manucorporat @danbucholtz

zakton5 avatar Feb 22 '17 16:02 zakton5

@manucorporat @jgw96 Hi Guys, any chance we could get a bit of focus onto fixing up virtualscroll in an upcoming version? There is a huge list of bugs here related to it and there are many more besides this since I compiled this list. Many over lap or dupe things already here.

Primarily I think if the below 4 issues were cleared up then many of the current virtualscroll issues could be closed out as lots relate to this behaviour or a variant of this behaviour. There is a PR hanging which may address the segments/conditional bug already as well.

If you can get some fixes in I am happy to put the time updating this list and doing basic testing and triage on related issues for you.

Virtualscroll inside a conditional (ie an ngif or in a segment) Virtualscroll with refresher component (particularly on UIWebview) Virtualscroll blank page when filtering/updating a list when not at the top of the list. Virtualscroll page bounce needs to be enabled on iOS otherwise it feels very non-native.

ghenry22 avatar Mar 09 '17 03:03 ghenry22

@ghenry22 adding to the list is the issue related to infinite-scroll with virtualscroll. This is a show stopper for using ionic. As it is basic requirement, because we cannot make an app similar to fb or twitter. This is the age for big data and ionic should fix this and make this as priority. @mhartington @adamdbradley @jgw96 @mlynch @brandyscarney @manucorporat

faraazc avatar Mar 09 '17 16:03 faraazc

We will be discussing this issue internally at our meeting tomorrow morning and will update this issue once we have a timeline for this. Thank you!

brandyscarney avatar Mar 09 '17 16:03 brandyscarney

@brandyscarney Virtual scroll is very important for fb,tw like apps, hope bugs will be fixed soon

JustasKuizinas avatar Mar 09 '17 16:03 JustasKuizinas

@brandyscarney thanks for the update. As mentioned I am more than happy to donate time testing and cleaning up open issues related to virtualscroll so you guys can focus more on fixes for it! Just let me know if I can help in any way.

ghenry22 avatar Mar 10 '17 01:03 ghenry22

Another virtualscroll issue introduced with rc4: #9660

agrt56 avatar Mar 10 '17 03:03 agrt56

Most of these issues come from the fact that the views in the virtual scroll are created outside the angular zone. See https://github.com/driftyco/ionic/issues/10451

frederikschubert avatar Mar 10 '17 06:03 frederikschubert