An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/16618
Vanessaab66e802acfd
diff --git a/app/src/boot/globalEvent/event.ts b/app/src/boot/globalEvent/event.tsindex c68b022222..209d0fc9be 100644--- a/app/src/boot/globalEvent/event.ts+++ b/app/src/boot/globalEvent/event.ts@@ -55,11 +55,13 @@ export const initWindowEvent = (app: App) => {return;}const fileElement = hasClosestByClassName(event.target, "sy__file");- const protyleElement = hasClosestByClassName(event.target, "protyle");+ const protyleElement = hasClosestByClassName(event.target, "protyle", true);if (!scrollTarget) {scrollTarget = fileElement || protyleElement;}- if (scrollTarget && scrollTarget.classList.contains("sy__file") && protyleElement) {+ if (scrollTarget && protyleElement && (+ scrollTarget.classList.contains("sy__file") || protyleElement !== scrollTarget+ )) {scrollTarget = protyleElement;} else if (scrollTarget && scrollTarget.classList.contains("protyle") && fileElement) {scrollTarget = fileElement;@@ -76,9 +78,9 @@ export const initWindowEvent = (app: App) => {scrollElement = scrollTarget.querySelector(".protyle-content");}if (scrollTarget && scrollElement) {- if ((event.dataTransfer.types.includes(Constants.SIYUAN_DROP_FILE) &&- hasClosestByClassName(event.target, "layout-tab-bar")) ||- (event.dataTransfer.types.includes("Files") && scrollTarget.classList.contains("sy__file"))) {+ if ((event.dataTransfer.types.includes(Constants.SIYUAN_DROP_FILE) && hasClosestByClassName(event.target, "layout-tab-bar")) ||+ (event.dataTransfer.types.includes("Files") && scrollTarget.classList.contains("sy__file")) ||+ (scrollTarget.classList.contains("protyle") && hasClosestByClassName(event.target, "file-tree"))) {stopScrollAnimation();} else {dragOverScroll(event, scrollElement.getBoundingClientRect(), scrollElement);