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/10646
Vanessaada1b351fda8
diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.tsindex 2fada843de..3351393e16 100644--- a/app/src/mobile/util/touch.ts+++ b/app/src/mobile/util/touch.ts@@ -36,7 +36,12 @@ export const handleTouchEnd = (event: TouchEvent, app: App) => {return;}const target = event.target as HTMLElement;- if (!clientX || !clientY || typeof yDiff === "undefined" ||+ if (!clientX) {+ // 上下滚动时防止左右滚动会将 clientX 清空+ closePanel();+ return;+ }+ if (!clientY || typeof yDiff === "undefined" ||target.tagName === "AUDIO" ||hasClosestByClassName(target, "b3-dialog", true) ||(window.siyuan.mobile.editor && !window.siyuan.mobile.editor.protyle.toolbar.subElement.classList.contains("fn__none")) ||@@ -44,7 +49,6 @@ export const handleTouchEnd = (event: TouchEvent, app: App) => {hasClosestByClassName(target, "keyboard") ||hasClosestByAttribute(target, "id", "commonMenu")) {- closePanel();return;}if (window.siyuan.mobile.editor) {@@ -181,9 +185,9 @@ export const handleTouchMove = (event: TouchEvent) => {xDiff = Math.floor(clientX - event.touches[0].clientX);yDiff = Math.floor(clientY - event.touches[0].clientY);+ // 上下滚动防止左右滑动if (Math.abs(xDiff) < Math.abs(yDiff)) {clientX = null;- clientY = null;return;}if (!firstDirection) {