Skip to content

Commit 85ab80c

Browse files
prakashKannanSf3972jsuarezruiz
authored andcommitted
Modified.
1 parent 0a2378d commit 85ab80c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,13 @@ void ClearContainerEventHandlers()
410410
if (Element is View && ElementGestureRecognizers is { } gestureRecognizers)
411411
{
412412
if (gestureRecognizers.FirstGestureOrDefault<DragGestureRecognizer>() is { } dragGesture)
413+
{
413414
dragGesture.PropertyChanged -= HandleDragAndDropGesturePropertyChanged;
415+
}
414416
if (gestureRecognizers.FirstGestureOrDefault<DropGestureRecognizer>() is { } dropGesture)
417+
{
415418
dropGesture.PropertyChanged -= HandleDragAndDropGesturePropertyChanged;
419+
}
416420
}
417421
}
418422
}
@@ -433,7 +437,6 @@ protected virtual void Dispose(bool disposing)
433437

434438
ClearContainerEventHandlers();
435439

436-
437440
if (_element is View && ElementGestureRecognizers is { } gestureRecognizers)
438441
{
439442
gestureRecognizers.CollectionChanged -= _collectionChangedHandler;

0 commit comments

Comments
 (0)