mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Fix always setting the zoom factor (#19963)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user