Skip to content

Commit

Permalink
[WinUI] GesturePlatformManager.Windows.cs - unused variable (#21953)
Browse files Browse the repository at this point in the history
* Code style

* Remove unused line
  • Loading branch information
MartyIX authored Apr 22, 2024
1 parent 632080a commit 7ba723c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -705,15 +705,15 @@ void UpdatingGestureRecognizers()
var view = Element as View;
IList<IGestureRecognizer>? gestures = view?.GestureRecognizers;

if (_container == null || gestures == null)
if (_container is null || gestures is null)
{
return;
}

ClearContainerEventHandlers();
UpdateDragAndDropGestureRecognizers();

var children = (view as IGestureController)?.GetChildElements(Point.Zero);
IList<TapGestureRecognizer>? childGestures =
children?.GetChildGesturesFor<TapGestureRecognizer>().ToList();

if (gestures.HasAnyGesturesFor<TapGestureRecognizer>(g => g.NumberOfTapsRequired == 1)
|| children?.GetChildGesturesFor<TapGestureRecognizer>(g => g.NumberOfTapsRequired == 1).Any() == true)
Expand Down

0 comments on commit 7ba723c

Please sign in to comment.