An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/5410
Vanessa1d8cc9d6b5ac
diff --git a/app/src/menus/Menu.ts b/app/src/menus/Menu.tsindex 31b3644ace..369c1af3dd 100644--- a/app/src/menus/Menu.ts+++ b/app/src/menus/Menu.ts@@ -1,13 +1,14 @@import {getEventName, isCtrl, updateHotkeyTip} from "../protyle/util/compatibility";import {setPosition} from "../util/setPosition";import {hasClosestByClassName} from "../protyle/util/hasClosest";+import {isMobile} from "../util/functions";export class Menu {public element: HTMLElement;constructor() {this.element = document.getElementById("commonMenu");- this.element.addEventListener("mouseover", (event) => {+ this.element.addEventListener(isMobile() ? getEventName() : "mouseover", (event) => {const target = event.target as Element;const itemElement = hasClosestByClassName(target, "b3-menu__item");if (!itemElement) {