mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 17:59:17 +00:00
fix Pdf zoom-to-fit issue when switching pages
This commit is contained in:
@@ -321,7 +321,7 @@ namespace QuickLook.Plugin.ImageViewer
|
||||
public void DoZoomToFit()
|
||||
{
|
||||
UpdateZoomToFitFactor();
|
||||
|
||||
|
||||
Zoom(ZoomToFitFactor, false, true);
|
||||
}
|
||||
|
||||
@@ -342,7 +342,7 @@ namespace QuickLook.Plugin.ImageViewer
|
||||
public void ResetZoom()
|
||||
{
|
||||
ZoomToFitFactor = 1;
|
||||
Zoom(1d, true);
|
||||
Zoom(1d, true, ZoomToFit);
|
||||
}
|
||||
|
||||
public void Zoom(double factor, bool suppressEvent = false, bool isToFit = false)
|
||||
|
Reference in New Issue
Block a user