File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/Controls/src/Core/Platform/GestureManager Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments