An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle: Consolidate drag bridge window blur handling https://github.com/siyuan-note/siyuan/issues/19313
Vanessa2ecc048a5cd8
diff --git a/app/src/util/touchDragBridge.ts b/app/src/util/touchDragBridge.tsindex 07b55be3d7..8f64e62a82 100644--- a/app/src/util/touchDragBridge.ts+++ b/app/src/util/touchDragBridge.ts@@ -1133,13 +1133,6 @@ export const initTouchDragBridge = () => {document.addEventListener("lostpointercapture", handleLostPointerCapture, {capture: true, passive: true});document.addEventListener("click", handleMouseClick, {capture: true, passive: false});document.addEventListener("mouseup", handleForeignMouseUp, {capture: true, passive: true});- window.addEventListener("blur", () => {- if (dragState?.inputType === "pointer" &&- shouldCancelPointerDragAfterWindowExit(!!isInAndroid(), dragState.isDragging,- !!dragState.relayId)) {- completeBridgeDrag(undefined, true);- }- });}document.addEventListener("wheel", handleDragWheel, {capture: true, passive: true});@@ -1148,6 +1141,11 @@ export const initTouchDragBridge = () => {document.addEventListener("keyup", handleDragKey, {capture: true});document.addEventListener("visibilitychange", handleVisibilityChange);window.addEventListener("blur", () => {+ if (enablePointerBridge && dragState?.inputType === "pointer" &&+ shouldCancelPointerDragAfterWindowExit(!!isInAndroid(), dragState.isDragging,+ !!dragState.relayId)) {+ completeBridgeDrag(undefined, true);+ }if (touchResizeHandle) {cancelManualTouch();}