xamarin/Xamarin.Forms

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

開放

#1,655 建立於 2018年1月25日

 (9 則留言) (0 個反應) (0 位負責人)C# (1,926 個分叉)batch import
a/listviewe/5 :clock5:help wantedp/iOS 🍎t/bug :bug:up-for-grabs

倉庫指標

星標
 (5,644 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南