An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:rotating_light:
Vanessa1f7fc4cc8f44
diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.tsindex 7e7c22823a..1094c520a3 100644--- a/app/src/mobile/util/touch.ts+++ b/app/src/mobile/util/touch.ts@@ -46,7 +46,7 @@ export const handleTouchEnd = (event: TouchEvent) => {scrollEnable = true;}- const isXScroll = Math.abs(xDiff) > Math.abs(yDiff)+ const isXScroll = Math.abs(xDiff) > Math.abs(yDiff);const menuElement = hasClosestByAttribute(target, "id", "menu");if (menuElement) {if (isXScroll) {@@ -114,10 +114,10 @@ export const handleTouchEnd = (event: TouchEvent) => {};export const handleTouchStart = (event: TouchEvent) => {- firstDirection = null- xDiff = undefined- yDiff = undefined- lastClientX = undefined+ firstDirection = null;+ xDiff = undefined;+ yDiff = undefined;+ lastClientX = undefined;if (navigator.userAgent.indexOf("iPhone") > -1 ||(event.touches[0].clientX > 8 && event.touches[0].clientX < window.innerWidth - 8)) {clientX = event.touches[0].clientX;@@ -151,13 +151,13 @@ export const handleTouchMove = (event: TouchEvent) => {if (previousClientX > event.touches[0].clientX) {lastClientX = event.touches[0].clientX;} else {- lastClientX = undefined+ lastClientX = undefined;}} else if (firstDirection === "toLeft") {if (previousClientX < event.touches[0].clientX) {lastClientX = event.touches[0].clientX;} else {- lastClientX = undefined+ lastClientX = undefined;}}}