Browse Source

链接-返回定位

OYXH\oyxh 1 year ago
parent
commit
4d60d79c90

+ 3 - 3
PDF Office/ViewModels/PropertyPanel/AnnotPanel/LinkAnnotPropertyViewModel.cs

@@ -1063,9 +1063,9 @@ namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
                 {
                     pdfViewer.GoToPage(historyPageIndex);
                     //SelectAnnotation();
-                    pdfViewer.SelectAnnotation(LinkAnnotArgs.PageIndex, LinkAnnotArgs.AnnotIndex);
-                    BackToPage(historyPageIndex, pageIndex);
 
+                    BackToPage(historyPageIndex, pageIndex);
+                    //pdfViewer.SelectAnnotation(LinkAnnotArgs.PageIndex, LinkAnnotArgs.AnnotIndex);
                     ChangeBtnGOorBack("GO", btnGOorBack);
                     //pdfViewer.SelectAnnotation(historyPageIndex, LinkAnnotArgs.AnnotIndex);
                 }
@@ -1096,7 +1096,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
                     if (historyPageIndex < pageIndex)
                     {
                         //height = vertical + (rect.Bottom * zoom);
-                        height = vertical + (paintrect.Top * zoom);
+                        height = vertical + (rect.Top * zoom);
                         pdfViewer.ScrollToVerticalOffset(height);
                     }
                     else