Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/10828

Vanessa60e2b51763ac
diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts
index bf34eec9eb..4e3f636c42 100644
--- a/app/src/layout/dock/Outline.ts
+++ b/app/src/layout/dock/Outline.ts
@@ -237,7 +237,7 @@ export class Outline extends Model {
let ghostElement: HTMLElement;
let selectItem: HTMLElement;
documentSelf.onmousemove = (moveEvent: MouseEvent) => {
- if (moveEvent.clientY === event.clientY && moveEvent.clientX === event.clientX) {
+ if (moveEvent.clientY === event.clientY && moveEvent.clientX === event.clientX || this.element.getAttribute("data-loading") === "true") {
return;
}
moveEvent.preventDefault();
@@ -310,6 +310,7 @@ export class Outline extends Model {
previousID = selectItem.getAttribute("data-node-id");
selectItem.after(item);
}
+ this.element.setAttribute("data-loading", "true");
transaction(editItem.editor.protyle, [{
action: "moveOutlineHeading",
id: item.dataset.nodeId,
@@ -469,5 +470,6 @@ export class Outline extends Model {
currentElement.classList.add("b3-list-item--focus");
}
}
+ this.element.removeAttribute("data-loading")
}
}