diff --git a/app/src/asset/anno.ts b/app/src/asset/anno.ts index bd446ef75..47c8f7875 100644 --- a/app/src/asset/anno.ts +++ b/app/src/asset/anno.ts @@ -28,7 +28,7 @@ const rectAnno = (config: any, pdf: any, element: HTMLElement) => { // 右键 return; } - const canvasRect = pdf.pdfViewer._getCurrentVisiblePage().first.view.canvas.getBoundingClientRect(); + const canvasRect = pdf.pdfViewer._getVisiblePages().first.view.canvas.getBoundingClientRect(); const containerRet = config.mainContainer.getBoundingClientRect(); const mostLeft = canvasRect.left; const mostRight = canvasRect.right; diff --git a/app/src/asset/index.ts b/app/src/asset/index.ts index f693315a4..69c2f646f 100644 --- a/app/src/asset/index.ts +++ b/app/src/asset/index.ts @@ -322,7 +322,7 @@ export class Asset extends Model {
Enter the password to open this PDF file:
@@ -336,7 +336,7 @@ export class Asset extends Model {