TapGestureRecognizer in CollectionView cell fires multiple times after scrolling #25
Unanswered
programmation
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I seem to have a problem in an app I'm creating with Fabulous.
I have a CollectionView with a Tap GestureRecognizer wired up to dispatch a message in each cell template.
I need this because the highlight colour of a selected item in the CV isn't easily controllable (requires ViewStateManager and a Style). So instead I set the CV to SelectionMode.None and use the Tap GR to dispatch a message.
The Tap works initially, but after scrolling the CV it can end up firing more than once. It looks very much to me as if the event handler for the Tap isn't being unhooked when the cell's BindingContext changes.
Before I go to the trouble of creating a repro, is this a known problem? Or is it more likely that I'm doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions