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/13207
Vanessad2162be60969
diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.tsindex e29bde47b2..64a153417d 100644--- a/app/src/mobile/util/touch.ts+++ b/app/src/mobile/util/touch.ts@@ -53,6 +53,7 @@ export const handleTouchEnd = (event: TouchEvent) => {const target = event.target as HTMLElement;const currentTime = Date.now();const editor = getCurrentEditor();+ handleTouchUp();if (Math.abs(clientX - event.changedTouches[0].clientX) < 5 && Math.abs(clientY - event.changedTouches[0].clientY) < 5) {if (editor && editor.protyle.toolbar.isMultiSelectMode()) {if (longPressTimer) {diff --git a/app/src/util/touchDragBridge.ts b/app/src/util/touchDragBridge.tsindex d608e77af3..6bc0ff1562 100644--- a/app/src/util/touchDragBridge.ts+++ b/app/src/util/touchDragBridge.ts@@ -286,8 +286,8 @@ const handleDragStart = (e: TouchEvent) => {isDragging: false,draggableElement: draggable,editorElement: null,- // File tree and gallery items need long-press to avoid conflict with scroll- requireLongPress: draggable.closest(".sy__file") !== null || draggable.closest(".av__gallery-item") !== null,+ // File tree, gallery items and list actions need long-press to avoid conflict with scroll+ requireLongPress: draggable.closest(".sy__file") !== null || draggable.closest(".av__gallery-item") !== null || draggable.closest(".protyle-action") !== null,touchStartTime: Date.now(),longPressCancelled: false,};@@ -306,7 +306,7 @@ const handleDragMove = (e: TouchEvent) => {return;}- // File tree and gallery items: must hold still for 300ms, then drag.+ // File tree, gallery items and list actions: must hold still for 300ms, then drag.// Moving before 400ms is a scroll — cancel drag entirely.if (dragState.requireLongPress) {if (dragState.longPressCancelled) {