xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.63k stars 1.87k forks source link

Carousel View swiping performance issue #15639

Open DnyaneshwarDarekar opened 1 year ago

DnyaneshwarDarekar commented 1 year ago

Description

Carousel View getting little stuck on first swipe. After adding multiple content views inside Carousel view, it is getting little stuck on first swipe. Tried to debug it, and got one observation the content view is getting called twice on first swipe. Tried with latest Xamarin version also but getting same performance issue.

Steps to Reproduce

  1. Add Carousel View inside Content page.
  2. Add Content View(view1) inside carousel view and give any list item source to carousel view.
  3. Create one more content view(view2) and add that 2nd content view inside 1st content view(view1) 5-6 places.
  4. And run the application and try to swipe it's looks like little stuck on first swipe. Note : Add some layouts and some data in Content Views

Expected Behavior

Carousel View should be swipe smoothly, without stuck.

Actual Behavior

Carousel View getting little stuck on first swipe.

Basic Information

Sample project

CarouselViewDemos.zip

Sample app Video

https://user-images.githubusercontent.com/109202772/209796568-399d5d2c-83e5-41ab-898d-51db9682aaf6.mp4