maui icon indicating copy to clipboard operation
maui copied to clipboard

Collection View in MAUI iOS, Android scrolling erratically.

Open Awesomer9561 opened this issue 3 years ago • 11 comments

Description

Hi, I am creating an app where I am using collection views with complex item templates and fetching data from API. But the list after loading scrolls erratically and freezes sometimes. Any suggestions or workarounds to make the scroll animation more smooth?

Steps to Reproduce

  1. Create a collection view.
  2. Fetch data from API.
  3. Populate the list and see the scroll behaviour.

Version with bug

6.0.400 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, I was not able test on other platforms

Affected platform versions

iOS 15, Android API 30, 31

Did you find any workaround?

Not yet.

Relevant log output

Did not find any significant output

Awesomer9561 avatar Jun 20 '22 08:06 Awesomer9561

@Awesomer9561 I don't repro this issue by writing a little repro project for collection view data binding. could you check my repro project and tell me if I miss something or share your repro project for us to repro this issue. thanks. MauiApp4.zip

kristinx0211 avatar Jun 21 '22 08:06 kristinx0211

Hi @Awesomer9561. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Jun 21 '22 08:06 ghost

@Awesomer9561 I don't repro this issue by writing a little repro project for collection view data binding. could you check my repro project and tell me if I miss something or share your repro project for us to repro this issue. thanks. MauiApp4.zip

Hi, In your code collection view is working fine but can you explain why are you using scroll as a parent?

Awesomer9561 avatar Jun 21 '22 09:06 Awesomer9561

@Awesomer9561 removing scroll does not effect the scrolling for collection view. you can have a try for this.

kristinx0211 avatar Jun 22 '22 09:06 kristinx0211

I tried using collection view with and without scrollview but whenever I am trying to render data from API it is jittering.

Awesomer9561 avatar Jun 22 '22 17:06 Awesomer9561

@Awesomer9561 Could you attach a small sample where reproduce the issue?. Happens on Android and iOS?. Thanks in advance.

jsuarezruiz avatar Jun 23 '22 07:06 jsuarezruiz

Hi @Awesomer9561. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Jun 23 '22 07:06 ghost

@Awesomer9561 Could you attach a small sample where reproduce the issue?. Happens on Android and iOS?. Thanks in advance.

Hi, Sorry for the late reply I tried on Android and iOS and found the iOS version to be a little smoother than the Android. The problem is with simultaneous API calls. If I am using pagination or loading a lot of data at once the scroll view is freezing. Can this be handled if I use skeleton loaders in my app?

Edit: This is my implementation MauiApp4.zip

Awesomer9561 avatar Jun 27 '22 03:06 Awesomer9561

@Awesomer9561, When you get a chance, could you please re-share the sample in the form of a GitHub repository? Thank you :)

rachelkang avatar Jun 29 '22 19:06 rachelkang

Hi @Awesomer9561. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Jun 29 '22 19:06 ghost

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

ghost avatar Jul 04 '22 01:07 ghost