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: android 划选
Daniel8e2f01032a17
diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.tsindex 9cd496c1ee..395d6b3dae 100644--- a/app/src/mobile/index.ts+++ b/app/src/mobile/index.ts@@ -12,7 +12,7 @@ import {Model} from "../layout/Model";import "../assets/scss/mobile.scss";import {Menus} from "../menus";import {addBaseURL, parseSiYuanUriInfo, setNoteBook} from "../util/pathName";-import {handlePointerUp, handleTouchEnd, handleTouchMove, handleTouchStart} from "./util/touch";+import {handleTouchEnd, handleTouchMove, handleTouchStart, handleTouchUp} from "./util/touch";import {fetchGet, fetchPost} from "../util/fetch";import {initFramework} from "./util/initFramework";import {initAssets} from "../util/assets";@@ -179,7 +179,7 @@ class App {document.addEventListener("touchmove", handleTouchMove, false);document.addEventListener("touchend", handleTouchEnd, false);document.addEventListener("touchcancel", handleTouchEnd, false);- window.addEventListener("pointerup", handlePointerUp, false);+ window.addEventListener("androidPhysicalTouchUp", handleTouchUp, false);window.addEventListener("keyup", () => {window.siyuan.ctrlIsPressed = false;window.siyuan.shiftIsPressed = false;diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.tsindex edb2a0a6e4..e29bde47b2 100644--- a/app/src/mobile/util/touch.ts+++ b/app/src/mobile/util/touch.ts@@ -2,7 +2,8 @@ import {hasClosestBlock,hasClosestByAttribute,hasClosestByClassName,- hasTopClosestByClassName, isInEmbedBlock,+ hasTopClosestByClassName,+ isInEmbedBlock,} from "../../protyle/util/hasClosest";import {closeModel, closePanel} from "./closePanel";import {popMenu} from "../menu";@@ -42,7 +43,7 @@ const clearLongPress = () => {}};-export const handlePointerUp = () => {+export const handleTouchUp = () => {if (Date.now() - time < Constants.TIMEOUT_MULTIPLE_SELECT) {clearLongPress();}