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/17628
Vanessa603da1f02162
diff --git a/app/src/mobile/dock/MobileFiles.ts b/app/src/mobile/dock/MobileFiles.tsindex ee94c917c0..8d919d714f 100644--- a/app/src/mobile/dock/MobileFiles.ts+++ b/app/src/mobile/dock/MobileFiles.ts@@ -20,6 +20,7 @@ import {App} from "../../index";import {refreshFileTree} from "../../dialog/processSystem";import {setStorageVal} from "../../protyle/util/compatibility";import {showMessage} from "../../dialog/message";+import {dragOverScroll, stopScrollAnimation} from "../../boot/globalEvent/dragover";export class MobileFiles extends Model {public element: HTMLElement;@@ -279,6 +280,9 @@ export class MobileFiles extends Model {state.ghostElement.style.left = `${touch.clientX}px`;state.ghostElement.style.top = `${touch.clientY}px`;+ // 手指接近列表上下边缘时自动滚动,避免拖拽时触不到屏外目标+ dragOverScroll({clientY: touch.clientY} as MouseEvent, this.element.getBoundingClientRect(), this.element);+const target = document.elementFromPoint(touch.clientX, touch.clientY);const liElement = target?.closest(".b3-list-item") as HTMLElement;if (!liElement) return;@@ -319,6 +323,7 @@ export class MobileFiles extends Model {filesElement.addEventListener("touchend", async () => {const state = this.touchDragState;if (!state) return;+ stopScrollAnimation();state.selectedElement.style.opacity = "";if (state.isDragging) {if (state.ghostElement) {@@ -457,6 +462,7 @@ export class MobileFiles extends Model {});filesElement.addEventListener("touchcancel", () => {+ stopScrollAnimation();if (this.touchDragState?.ghostElement) {this.touchDragState.ghostElement.remove();}