xamarin/Xamarin.Forms

[iOS] Wrong behaviour when rapidly tapping multiple cells in TableView on iOS

Open

#1,655 opened on Jan 25, 2018

View on GitHub
 (9 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
a/listviewe/5 :clock5:help wantedp/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

On iOS, Xamarin Forms TableView does not correctly process a succession of 2 rapid taps on 2 different cells.

Steps to Reproduce

  1. Open attached test project and run on iOS device (this cannot be tested on the simulator).
  2. In the displayed TableView, rapidly tap on 2 different items, e.g. first item 2 and then item 4. Notice that the taps have to be done almost simultaneously; use your 2 index fingers to carry out the 2 taps. It may take a few attempts to trigger the error.

Expected Behavior

Only item 2 should get selected and the navigation should proceed to the "Item 2" page; the tap on item 4 should be ignored.

Actual Behavior

  • Both item 2 and item 4 are displayed as selected (i.e. their cells go grey)
  • Navigation proceeds to "Item 2" page
  • After tapping on "back" and returning to the TableView page, item 4 is still shown as selected (i.e. its cell is grey). Item 4 continues to be in permanent 'selected' state until the user taps again on one of the items in the TableView.
  • No matter which item is tapped next, the navigation will proceed to "Item 4" page.

Basic Information

  • tested on a iPhone 4s with iOS 9.3.5
  • tested with Xamarin.Forms 2.5.0.122203

Reproduction Link

Test project attached:

listviewtest.zip

Contributor guide