mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 10:19:07 +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 bitmap = PdfHandle.GetPage(CurrentPage, factor);
|
||||||
var image = bitmap.ToBitmapSource();
|
var image = bitmap.ToBitmapSource();
|
||||||
bitmap.Dispose();
|
bitmap.Dispose();
|
||||||
|
|
||||||
pagePanel.ResetZoom();
|
|
||||||
pagePanel.Source = image;
|
pagePanel.Source = image;
|
||||||
|
pagePanel.ResetZoom();
|
||||||
|
|
||||||
_viewRenderFactor = factor;
|
_viewRenderFactor = factor;
|
||||||
|
|
||||||
pagePanel.SetScrollPosition(pos);
|
pagePanel.SetScrollPosition(pos);
|
||||||
|
|
||||||
Dispatcher.Delay(500, t => GC.Collect());
|
Dispatcher.Delay(500, t => GC.Collect());
|
||||||
|
Reference in New Issue
Block a user