From 8e64d69e8316d09fe7e7c9fc88f2255b7e5acbbd Mon Sep 17 00:00:00 2001 From: Max Katz Date: Mon, 8 Aug 2022 01:58:45 -0400 Subject: [PATCH] Fix control catalog crash --- samples/ControlCatalog/Pages/PointersPage.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/ControlCatalog/Pages/PointersPage.xaml.cs b/samples/ControlCatalog/Pages/PointersPage.xaml.cs index 6fc468e37f..e82fcb6226 100644 --- a/samples/ControlCatalog/Pages/PointersPage.xaml.cs +++ b/samples/ControlCatalog/Pages/PointersPage.xaml.cs @@ -59,7 +59,7 @@ Position: ??? ???"; e.Pointer.Capture(null); e.Handled = true; } - else + else if (e.Pointer.Captured is not null) { throw new InvalidOperationException("How?"); }