From 293c7138b584e2ae32ac41ff148d62254d26e862 Mon Sep 17 00:00:00 2001 From: MartyIX <203266+MartyIX@users.noreply.github.com> Date: Sat, 20 Apr 2024 12:52:13 +0200 Subject: [PATCH 1/2] Code style --- .../Platform/GestureManager/GesturePlatformManager.Windows.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs b/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs index b19e27b47792..ed5a5f51fea5 100644 --- a/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs +++ b/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs @@ -705,8 +705,10 @@ void UpdatingGestureRecognizers() var view = Element as View; IList? gestures = view?.GestureRecognizers; - if (_container == null || gestures == null) + if (_container is null || gestures is null) + { return; + } ClearContainerEventHandlers(); UpdateDragAndDropGestureRecognizers(); From 777b7632687024dad3352beb6dc661167f95cf4b Mon Sep 17 00:00:00 2001 From: MartyIX <203266+MartyIX@users.noreply.github.com> Date: Sat, 20 Apr 2024 12:52:20 +0200 Subject: [PATCH 2/2] Remove unused line --- .../Platform/GestureManager/GesturePlatformManager.Windows.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs b/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs index ed5a5f51fea5..49322cc73391 100644 --- a/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs +++ b/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs @@ -714,8 +714,6 @@ void UpdatingGestureRecognizers() UpdateDragAndDropGestureRecognizers(); var children = (view as IGestureController)?.GetChildElements(Point.Zero); - IList? childGestures = - children?.GetChildGesturesFor().ToList(); if (gestures.HasAnyGesturesFor(g => g.NumberOfTapsRequired == 1) || children?.GetChildGesturesFor(g => g.NumberOfTapsRequired == 1).Any() == true)