From 96bee567c176e6f632c025bced2c311ec645354c Mon Sep 17 00:00:00 2001 From: Vignesh-SF3580 <102575140+Vignesh-SF3580@users.noreply.github.com> Date: Tue, 17 Mar 2026 14:09:00 +0530 Subject: [PATCH] resolved compilation issue. --- src/Controls/src/Core/Internals/SwipeGestureExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controls/src/Core/Internals/SwipeGestureExtensions.cs b/src/Controls/src/Core/Internals/SwipeGestureExtensions.cs index 1234fec2891a..4d51af2d1c47 100644 --- a/src/Controls/src/Core/Internals/SwipeGestureExtensions.cs +++ b/src/Controls/src/Core/Internals/SwipeGestureExtensions.cs @@ -19,7 +19,7 @@ internal static double NormalizeRotation(this double rotation) internal static SwipeDirection TransformSwipeDirectionForRotation(SwipeDirection direction, double rotation) { - if (!double.IsFinite(rotation)) + if (double.IsNaN(rotation) || double.IsInfinity(rotation)) { return direction; }