Skip to content

Commit

Permalink
zoom mode is not updated #1549
Browse files Browse the repository at this point in the history
  • Loading branch information
d2phap committed Jun 6, 2023
1 parent 39d3daf commit 2dd0085
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Source/ImageGlass/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4075,18 +4075,18 @@ private void picMain_MouseWheel(object sender, MouseEventArgs e) {
}

private void picMain_Zoomed(object sender, ImageBoxZoomEventArgs e) {
if (e.Source == ImageBoxActionSources.Unknown) return;
if (e.Source == ImageBoxActionSources.User) {
_isManuallyZoomed = true;

_isManuallyZoomed = true;

// Handle window fit after zoom change
if (Configs.IsWindowFit) {
WindowFitMode(false);
}
// Handle window fit after zoom change
if (Configs.IsWindowFit) {
WindowFitMode(false);
}

// Set new zoom ratio if Zoom Mode LockZoomRatio is enabled
if (Configs.ZoomMode == ZoomMode.LockZoomRatio) {
Configs.ZoomLockValue = e.NewZoom;
// Set new zoom ratio if Zoom Mode LockZoomRatio is enabled
if (Configs.ZoomMode == ZoomMode.LockZoomRatio) {
Configs.ZoomLockValue = e.NewZoom;
}
}

// Zoom optimization
Expand Down

0 comments on commit 2dd0085

Please sign in to comment.