-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Xamarin.Forms] IsDragAndDropping not changed to false on iOS 15 #55
Comments
+1 here. @AlleSchonWeg did u manage to find out what changed in ios 15? |
@themronion |
Does the EndDragAndDrop event/command is working ? _isMovedBackfire = true;
var item = itemsSourceList[from];
itemsSourceList.RemoveAt(from);
itemsSourceList.Insert((int)pathTo.Item, item);
var to = itemsSourceList.IndexOf(item);
Element.IsDragAndDropping = false;
if (draggedViewCell?.FormsCell is DraggableViewCell draggableViewCell)
{
draggableViewCell.IsDragAndDropping = false;
Element.DragAndDropEndedCommand?.Execute(
new DragAndDropInfo(from, to, draggableViewCell.BindingContext));
} If the command is still working but not the IsDragAndDropping, it means that's probably more a XF data trigger issue.... |
mmmh I think I reproduced, it seems unfortunately a XF Data trigger issue. Workaround could be: don't use a trigger but a converter based on the IsDragAndDropping property. |
Hi, |
If it's a XF issue I cannot fix it. Just use the workaround |
nope, doesn't fix it. The problem only occurs when we try to to drag and drop a cell in another position in the list, if we put it after selection to the same position everything is ok. I guess there might be a problem somewhere with the cells binding context |
i guess we should rename the issue cause |
For now the issue is very vague and not very characterized I'm afraid |
Still not working with iOS 15.5. |
@AlleSchonWeg nope, maybe i'll give it a spin again in my spare time |
Hi, Line 100 in 52d2318
the problem is fixed. After the change the UIGestureRecognizerState.Changed part uses the cell from the UIGestureRecognizerState.Began part.
|
@AlleSchonWeg make a pr maybe |
Hi, |
I don't remember the code and why it was written this way :) |
will be fixed in next version |
fixed in maui |
Platform (please complete the following information):
Describe the bug
Sometimes the IsDragAndDropping Property is not changed to false, if dragging ends. Works great on Android and iOS 14. But with iOS 15.2 it stops working.
To Reproduce
Steps to reproduce the behavior:
Exceptions (if applicable)
Copy paste the exception and the stack trace
Screenshots (if applicable)
The text was updated successfully, but these errors were encountered: