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/pull/14832

Vanessa780e1a5bc6d8
diff --git a/app/src/boot/globalEvent/mousemove.ts b/app/src/boot/globalEvent/mousemove.ts
index 7d243de600..177a59ca5e 100644
--- a/app/src/boot/globalEvent/mousemove.ts
+++ b/app/src/boot/globalEvent/mousemove.ts
@@ -7,7 +7,7 @@ const getRightBlock = (element: HTMLElement, x: number, y: number) => {
let index = 1;
let nodeElement = element;
if (nodeElement && nodeElement.classList.contains("protyle-action")) {
- return nodeElement.parentElement;
+ return nodeElement;
}
while (nodeElement && (nodeElement.classList.contains("list") || nodeElement.classList.contains("li"))) {
nodeElement = document.elementFromPoint(x + 73 * index, y) as HTMLElement;