From 959f79baafb226f12cdef0c82453cdd6d0192c25 Mon Sep 17 00:00:00 2001 From: bentmar Date: Sat, 29 Apr 2017 19:37:02 +0200 Subject: [PATCH] Remove close gesture to prevent doubletaps Removes gesturerecognizer when closing cardpage --- NControl.Controls/NControl.Controls/CardPage.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NControl.Controls/NControl.Controls/CardPage.cs b/NControl.Controls/NControl.Controls/CardPage.cs index f60c7dc..5a6d582 100644 --- a/NControl.Controls/NControl.Controls/CardPage.cs +++ b/NControl.Controls/NControl.Controls/CardPage.cs @@ -291,6 +291,8 @@ public virtual Task ShowAsync() /// The async. public virtual async Task CloseAsync() { + _overlay.GestureRecognizers?.Clear(); + if (_platformHelper.ControlAnimatesItself) { #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed