From e0758441fe6010615b936922acd2148447ec855d Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Fri, 27 Oct 2023 00:07:02 +0300 Subject: [PATCH] fix(wasm): Prevent browser from stealing pointer events for None ManipulationModes --- src/Uno.UI/UI/Xaml/UIElement.Pointers.wasm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uno.UI/UI/Xaml/UIElement.Pointers.wasm.cs b/src/Uno.UI/UI/Xaml/UIElement.Pointers.wasm.cs index e9c7ccc8b8c8..09a2f528ef26 100644 --- a/src/Uno.UI/UI/Xaml/UIElement.Pointers.wasm.cs +++ b/src/Uno.UI/UI/Xaml/UIElement.Pointers.wasm.cs @@ -327,7 +327,7 @@ private static PointerRoutedEventArgs ToPointerArgs( partial void OnManipulationModeChanged(ManipulationModes oldMode, ManipulationModes newMode) { - if (newMode is ManipulationModes.None or ManipulationModes.System) + if (newMode == ManipulationModes.System) { ResetStyle("touch-action"); }