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

Vanessa79a265812dcf
diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.ts
index 6c8684ccbe..2fada843de 100644
--- a/app/src/mobile/util/touch.ts
+++ b/app/src/mobile/util/touch.ts
@@ -44,6 +44,7 @@ export const handleTouchEnd = (event: TouchEvent, app: App) => {
hasClosestByClassName(target, "keyboard") ||
hasClosestByAttribute(target, "id", "commonMenu")
) {
+ closePanel();
return;
}
if (window.siyuan.mobile.editor) {
@@ -180,6 +181,11 @@ 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) {
firstDirection = xDiff > 0 ? "toLeft" : "toRight";
}