Fix always setting the zoom factor (#19963)

This commit is contained in:
Floris Westerman
2022-08-24 20:09:00 +02:00
committed by GitHub
parent bb67764be6
commit 768603eb61

View File

@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -88,10 +88,8 @@ namespace ColorPicker.Helpers
_zoomViewModel.ZoomArea = BitmapToImageSource(_bmp);
}
else
{
_zoomViewModel.ZoomFactor = Math.Pow(ZoomFactor, _currentZoomLevel - 1);
}
_zoomViewModel.ZoomFactor = Math.Pow(ZoomFactor, _currentZoomLevel - 1);
ShowZoomWindow(point);
}