diff --git a/QuickLook.Plugin/QuickLook.Plugin.PDFViewer/PdfViewerControl.xaml.cs b/QuickLook.Plugin/QuickLook.Plugin.PDFViewer/PdfViewerControl.xaml.cs index 66cc674..e47fb5f 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.PDFViewer/PdfViewerControl.xaml.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.PDFViewer/PdfViewerControl.xaml.cs @@ -160,12 +160,12 @@ namespace QuickLook.Plugin.PDFViewer var bitmap = PdfHandle.GetPage(CurrentPage, factor); var image = bitmap.ToBitmapSource(); bitmap.Dispose(); - - pagePanel.ResetZoom(); + pagePanel.Source = image; + pagePanel.ResetZoom(); _viewRenderFactor = factor; - + pagePanel.SetScrollPosition(pos); Dispatcher.Delay(500, t => GC.Collect());