Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/7580

Vanessaca98c1f0862e
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index b90df8cf44..5a2e315b79 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -596,7 +596,9 @@ export class WYSIWYG {
if (!startFirstElement) {
startFirstElement = firstElement;
}
- } else if (!firstBlockElement) {
+ } else if (!firstBlockElement &&
+ // https://github.com/siyuan-note/siyuan/issues/7580
+ moveEvent.clientY < protyle.wysiwyg.element.lastElementChild.getBoundingClientRect().bottom) {
firstBlockElement = protyle.wysiwyg.element.firstElementChild as HTMLElement;
}
let selectElements: Element[] = [];