XamarinCommunityToolkit icon indicating copy to clipboard operation
XamarinCommunityToolkit copied to clipboard

[Bug] Android LongPress on CollectionView breaks ObservableCollection functionality

Open jantanis opened this issue 4 years ago • 7 comments

Description

Adding TouchEffect LongPress on a CollectionView breaks the functionality of the ObservableCollection bound to SelectedItems. Perhaps this is linked to #760.

Steps to Reproduce

  1. Open and start Sample project on Android
  2. Select Item 4 and Item 6
  3. Deselect Item 4

Expected Behavior

Debug.WriteLine output: e.Action: Add e.Action: Add e.Action: Remove

Actual Behavior

Debug.WriteLine output: e.Action: Reset e.Action: Add e.Action: Reset e.Action: Add e.Action: Add e.Action: Reset e.Action: Add

Basic Information

  • Version with issue: 1.2.0
  • Last known good version: n/a
  • IDE: VS 4 MAC
  • Platform Target Frameworks:
    • Android: 8.1

Reproduction Link

XCT.Sample.zip

jantanis avatar Aug 24 '21 09:08 jantanis

https://github.com/xamarin/XamarinCommunityToolkit/issues/1568

Duplicate?

AndreiMisiukevich avatar Aug 24 '21 17:08 AndreiMisiukevich

#1568

Duplicate?

It could be triggering the same behavior, but it's triggered in a different manner. So I can't say it's a duplicate.

jantanis avatar Sep 14 '21 08:09 jantanis

@jantanis can you try the latest build from the nightly package? (you can check Readme to get the nuget source where it can be installed from)

AndreiMisiukevich avatar Sep 14 '21 22:09 AndreiMisiukevich

@AndreiMisiukevich I did with 1.1.0-preview1096, but no luck:

e.Action: Reset e.Action: Add e.Action: Reset e.Action: Add e.Action: Add e.Action: Reset e.Action: Add

jantanis avatar Sep 20 '21 06:09 jantanis

I also have a problem in CollectionView! when i'm scrolling the LongPressCommand fires and the pressed scale remains and doesn't come back to normal!

should i create another issue or it'll be a duplicate?

mhrastegari avatar Oct 20 '21 18:10 mhrastegari

I also have a problem in CollectionView! when i'm scrolling the LongPressCommand fires and the pressed scale remains and doesn't come back to normal!

should i create another issue or it'll be a duplicate?

Create a new one. I don't think this is de same issue as yours. Perhaps related, but a different issue.

jantanis avatar Oct 21 '21 07:10 jantanis

This happens to more than just collectionviews. We add a longpress touch effect to all labels. All other (short tap / xamarins default tap) gesture recognizers earlier in the tree are not fired when you click on a label with a long press effect. If you need a reproduction scenario, please let me know.

RemcoDEV avatar Feb 22 '22 10:02 RemcoDEV