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/18300
Vanessa4222b565707e
diff --git a/app/src/util/touchDragBridge.ts b/app/src/util/touchDragBridge.tsindex 7f2b3a821b..3764c00862 100644--- a/app/src/util/touchDragBridge.ts+++ b/app/src/util/touchDragBridge.ts@@ -99,7 +99,6 @@ const handleTouchStart = (e: TouchEvent) => {dragState.startX = touch.clientX;dragState.startY = touch.clientY;dragState.touchStartTime = Date.now();- dragState.requireLongPress = requiresLongPress(dragState.draggableElement);return;}if (dragState || manualState) return;@@ -227,14 +226,6 @@ const getDraggableAncestor = (el: Element): HTMLElement | null => {return null;};-const requiresLongPress = (draggableElement: HTMLElement) => {- return draggableElement.closest(".sy__file") !== null ||- draggableElement.closest(".sy__outline") !== null ||- draggableElement.closest(".av__gallery-item") !== null ||- draggableElement.closest(".layout-tab-bar") !== null ||- draggableElement.closest(".protyle-action") !== null;-};-const createDragState = (draggableElement: HTMLElement, point: DragPoint, inputType: "touch" | "pointer",isMouse: boolean, pointerId?: number): DragState & LongPressGate => {return {@@ -247,8 +238,12 @@ const createDragState = (draggableElement: HTMLElement, point: DragPoint, inputTstartX: point.clientX,startY: point.clientY,touchStartTime: Date.now(),- // Touch 操作文件树、画廊、页签和列表时需长按,以避免与滚动冲突;Pointer 鼠标仅使用位移门槛。- requireLongPress: inputType === "touch" && requiresLongPress(draggableElement),+ // 文件树、画廊、页签和列表操作需长按,以避免与滚动冲突。+ requireLongPress: draggableElement.closest(".sy__file") !== null ||+ draggableElement.closest(".sy__outline") !== null ||+ draggableElement.closest(".av__gallery-item") !== null ||+ draggableElement.closest(".layout-tab-bar") !== null ||+ draggableElement.closest(".protyle-action") !== null,longPressCancelled: false,isMouse,};