fix Pdf zoom-to-fit issue when switching pages

This commit is contained in:
Paddy Xu
2017-12-22 10:52:37 +02:00
parent fe39854b57
commit abc80e046d
3 changed files with 20 additions and 13 deletions

View File

@@ -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)