From b3eeaff0e5dda28bea3ccba7c54a7001ccc47943 Mon Sep 17 00:00:00 2001 From: afriscic Date: Wed, 12 Jun 2024 17:01:18 +0200 Subject: [PATCH] 1.5.5 --- .../BarcodeScanning.Native.Maui.csproj | 2 +- BarcodeScanning.Native.Maui/Platform/Android/CameraManager.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/BarcodeScanning.Native.Maui/BarcodeScanning.Native.Maui.csproj b/BarcodeScanning.Native.Maui/BarcodeScanning.Native.Maui.csproj index ed8fae9..f8b9755 100644 --- a/BarcodeScanning.Native.Maui/BarcodeScanning.Native.Maui.csproj +++ b/BarcodeScanning.Native.Maui/BarcodeScanning.Native.Maui.csproj @@ -8,7 +8,7 @@ true enable true - 1.5.4 + 1.5.5 Alen Friščić MIT README.md diff --git a/BarcodeScanning.Native.Maui/Platform/Android/CameraManager.cs b/BarcodeScanning.Native.Maui/Platform/Android/CameraManager.cs index 19b44fa..1721ab7 100644 --- a/BarcodeScanning.Native.Maui/Platform/Android/CameraManager.cs +++ b/BarcodeScanning.Native.Maui/Platform/Android/CameraManager.cs @@ -192,7 +192,9 @@ internal void UpdateZoomFactor() { factor = Math.Max(factor, _cameraView.MinZoomFactor); factor = Math.Min(factor, _cameraView.MaxZoomFactor); - _cameraController.SetZoomRatio(factor); + + if (factor != _cameraView.CurrentZoomFactor) + _cameraController.SetZoomRatio(factor); } } }