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/18033

Vanessa218c8e8f4b16
diff --git a/app/src/boot/globalEvent/event.ts b/app/src/boot/globalEvent/event.ts
index 84322db5d1..1133697f36 100644
--- a/app/src/boot/globalEvent/event.ts
+++ b/app/src/boot/globalEvent/event.ts
@@ -84,8 +84,8 @@ export const initWindowEvent = (app: App) => {
}
if (["nodeheading", "nodelistitem"].includes(gutterBlockType)) {
const statusHeight = document.getElementById("status")?.clientHeight || 0;
- const inYRange = event.clientY > document.getElementById("toolbar")?.clientHeight || 0
- && event.clientY < window.innerHeight - statusHeight;
+ const toolbarHeight = document.getElementById("toolbar")?.clientHeight || 0;
+ const inYRange = event.clientY > toolbarHeight && event.clientY < window.innerHeight - statusHeight;
// 通过 dock 容器类名判断位置,避免访问私有属性 position
const dockElement = fileDock.layout.element;
let onEdge = false;