mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 02:09:05 +00:00
fix scrollbar bug
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user