xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.64k stars 1.88k forks source link

[Bug] ListView item drag-start fires immediately on single click/tapped on Android 10 #15722

Open Dry-Tech opened 1 year ago

Dry-Tech commented 1 year ago

Description

I have a ListView which items are sortable by drag and drop. Now the problem is, that the drag-start-event is fired without having to hold the item for 1 2 seconds. The drag-start event fires immediately onclick/ontapped and the drag placeholder stays on the ui.

Steps to Reproduce

Execute the code on an Android 10 emulator or device and tap on an item in the listview: https://github.com/Dry-Tech/XamarinDragStartBugAndroid10/tree/master

Expected Behavior

Drag-start event fires after 1 2 seconds of holding the item in the list

Basic Information

Dry-Tech commented 1 year ago

Hello Xamarin team,

please try out the example repository.

Run the project and make a single tap on a list item and you will see, that the drag indicator immediately appears, and stays on the gui, sometimes the drag indicator even appears/stays on the home screen! when bringing the app to the background.

Please have a look at this, i have an app which i cant publish because of this, thanks!