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: Long-pressing and scrolling vertically on mobile no longer triggers multi-select mode https://github.com/siyuan-note/siyuan/issues/18045
Daniel681931e7d86c
diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.tsindex 754717a80b..9f37ef0b11 100644--- a/app/src/mobile/util/touch.ts+++ b/app/src/mobile/util/touch.ts@@ -275,6 +275,11 @@ let previousClientX: number;const sideMaskElement = document.querySelector(".side-mask") as HTMLElement;export const handleTouchMove = (event: TouchEvent) => {const target = event.target as HTMLElement;+ // 位移超过阈值说明是滑动而非长按,取消进入多选的定时器+ if (clientX && clientY &&+ (Math.abs(clientX - event.touches[0].clientX) >= 5 || Math.abs(clientY - event.touches[0].clientY) >= 5)) {+ clearLongPress();+ }if (!clientX || !clientY ||target.tagName === "AUDIO" ||document.getElementById("dragGhost") ||@@ -302,10 +307,6 @@ 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) >= 5 || Math.abs(yDiff) >= 5) {- clearLongPress();- }if (!firstDirection) {firstDirection = xDiff > 0 ? "toLeft" : "toRight";}