Join GitHub today
Listview.ItemTapped doesnt fire when viewcell has ContxctAction and GestureRecognizer #2026
ItemTapped event is not fired when a viewcell has contextaction + an element that has a gestrurerecognizer.
On earlier versions of 2.5.0 the issue with this combo was that the contextAction fired just by scrolling the screen (should only fire when longtap), the fix for this issue is here #1441.
Now that the fix mentioned is included, Taps doesnt work (with the same combo of viewcell)
Steps to Reproduce
Tapevent should fire
Tapevent doesnt fire
The problem seems to be just with the context actions. If I remove them the ItemTapped/ItemSelected events start firing again. Putting a TapGestureRecognizer around the entire cell is almost a workaround, except that when you long press to get the context actions the TapGestureRecognizer fires also. The only workaround I see is putting some sort of icon to tap, like an arrow if your list view item is going to another page.
This bug has surfaced before in the old bugzilla tool. This type of basic ListView functionality is core to many apps, and the fact that it's not somehow tested by the Xamarin team prior to deploying their product is ridiculous. Every Xamarin Forms release since 2.5 has been borderline unusable because of bugs like this and other problems with ListView grouping. I'm probably preaching to the choir, but when Microsoft is involved, this is what you can expect. It's been that way since the 90's. If I had known this acquisition would have happened some day, I would have never started using Xamarin.