XamarinCommunityToolkit icon indicating copy to clipboard operation
XamarinCommunityToolkit copied to clipboard

[Bug] TabView goes into tab switching loop after quickly switching tabs.

Open Pastajello opened this issue 4 years ago • 4 comments

Description

After creating tabView with some tabs, if the tabs are heavy or there is some calculation between switching them, and the switching is not super smooth - propably takes longer then animation consider - pressing another tab is making TabView go into loop of selecting tabs.

Link to Reproduction Sample

https://github.com/Miksier/tabview_bug_sample

Steps to Reproduce

  1. Create some heavy tabs
  2. Quickly tap on different tabs
  3. loop of tab switching

Expected Behavior

Tabs are being blocked while the animation is in progress so no clicking is allowed?

Actual Behavior

loop

Basic Information

  • Version with issue: 1.3.1

  • Last known good version: -

  • IDE: VS 2019 Version 16.11.7

  • Platform Target Frameworks:

    • Android: 11
  • Nuget Packages: Xamarin.CommunityToolkit 1.3.1 Xamarin.Forms 5.0.0.2244

Reproduction imagery

https://user-images.githubusercontent.com/28345098/144035272-20b52c91-b609-4b50-9ee2-fd56b8832ca4.mp4

Pastajello avatar Nov 30 '21 11:11 Pastajello

I also encountered this issue.will debug soon to find the issue in codebase

SarthakGz avatar Dec 02 '21 07:12 SarthakGz

I have the same issue. Do you have any fix or workaround for it ?

bradlak avatar Dec 24 '21 06:12 bradlak

Any news around this? I have the same problem. And I discover that with iOS, tabs don't enter in a loop but the ContentView inside one of the TabViewItems disappears. Not sure if this is related or not.

PinoPinillo avatar Jul 20 '22 12:07 PinoPinillo

To be fair the tab view is quite buggy, hope some of these are resolved in maui.

LeoJHarris avatar Oct 03 '23 22:10 LeoJHarris