Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/7380

Vanessac56dcead19b2
diff --git a/app/src/asset/anno.ts b/app/src/asset/anno.ts
index 0743dcc997..d53deb72ba 100644
--- a/app/src/asset/anno.ts
+++ b/app/src/asset/anno.ts
@@ -34,7 +34,10 @@ export const initAnno = (file: string, element: HTMLElement, annoId: string, pdf
// 右键
return;
}
- const canvasRect = pdf.pdfViewer._getVisiblePages().first.view.canvas.getBoundingClientRect();
+ let canvasRect = pdf.pdfViewer._getVisiblePages().first.view.canvas.getBoundingClientRect();
+ if (event.clientX > canvasRect.right) {
+ canvasRect = pdf.pdfViewer._getVisiblePages().last.view.canvas.getBoundingClientRect();
+ }
const containerRet = pdfConfig.mainContainer.getBoundingClientRect();
const mostLeft = canvasRect.left;
const mostRight = canvasRect.right;