An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://ld246.com/article/1705233964097
Vanessac2383a6682e1
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 566553ab96..b8dd2439b6 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -877,7 +877,11 @@ export class WYSIWYG {let firstBlockElement = hasClosestBlock(firstElement);if (moveEvent.clientY > y) {if (!startFirstElement) {- startFirstElement = firstElement;+ // 向上选择导致滚动条滚动到顶部再向下选择至 > y 时,firstBlockElement 为 undefined https://ld246.com/article/1705233964097+ if (!firstBlockElement) {+ firstBlockElement = protyle.wysiwyg.element.firstElementChild as HTMLElement;+ }+ startFirstElement = firstBlockElement;}} else if (!firstBlockElement &&// https://github.com/siyuan-note/siyuan/issues/7580