Skip to content

Commit

Permalink
Add back some logic that somehow got removed
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelkang committed Oct 25, 2023
1 parent 0fd0fb9 commit d395eff
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -627,8 +627,6 @@ void LoadRecognizers()
continue;
}

var nativeRecognizers = GetPlatformRecognizer(recognizer);

if (OperatingSystem.IsIOSVersionAtLeast(11) && recognizer is DragGestureRecognizer)
{
dragFound = true;
Expand All @@ -637,6 +635,7 @@ void LoadRecognizers()
{
var interaction = new UIDragInteraction(_dragAndDropDelegate);
interaction.Enabled = true;
_interactions.Add(interaction);
PlatformView.AddInteraction(interaction);
}
}
Expand All @@ -648,10 +647,13 @@ void LoadRecognizers()
if (uIDropInteraction == null && PlatformView != null)
{
var interaction = new UIDropInteraction(_dragAndDropDelegate);
_interactions.Add(interaction);
PlatformView.AddInteraction(interaction);
}
}

var nativeRecognizers = GetPlatformRecognizer(recognizer);

if (nativeRecognizers is null)
continue;

Expand Down

0 comments on commit d395eff

Please sign in to comment.