An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Clicking on the video will jump to the block where the cursor is on mobile https://github.com/siyuan-note/siyuan/issues/14569
Daniel31e1248020c8
diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.tsindex cd387714bc..bf227e1750 100644--- a/app/src/mobile/util/touch.ts+++ b/app/src/mobile/util/touch.ts@@ -135,6 +135,12 @@ export const handleTouchEnd = (event: TouchEvent, app: App) => {};export const handleTouchStart = (event: TouchEvent) => {+ if (0 < event.touches.length && ((event.touches[0].target as HTMLElement).tagName === "VIDEO" || (event.touches[0].target as HTMLElement).tagName === "AUDIO")) {+ // https://github.com/siyuan-note/siyuan/issues/14569+ activeBlur();+ return;+ }+if (globalTouchStart(event)) {return;}diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex b11c1c0566..ba5ff183a9 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -2,7 +2,8 @@ import {getTextStar, paste} from "../util/paste";import {hasClosestBlock,hasClosestByAttribute,- hasClosestByClassName, hasClosestByTag,+ hasClosestByClassName,+ hasClosestByTag,hasTopClosestByClassName,isInEmbedBlock,} from "../util/hasClosest";@@ -13,7 +14,8 @@ import {focusSideBlock,getEditorRange,getSelectionOffset,- setFirstNodeRange, setInsertWbrHTML,+ setFirstNodeRange,+ setInsertWbrHTML,setLastNodeRange,} from "../util/selection";import {Constants} from "../../constants";@@ -39,7 +41,8 @@ import {getNextBlock,getTopAloneElement,hasNextSibling,- hasPreviousSibling, isEndOfBlock,+ hasPreviousSibling,+ isEndOfBlock,isNotEditBlock} from "./getBlock";import {transaction, updateTransaction} from "./transaction";@@ -2175,14 +2178,6 @@ export class WYSIWYG {});});hideElements(["hint", "util"], protyle);- /// #if MOBILE- // https://github.com/siyuan-note/siyuan/issues/14569- if (event.target.tagName === "VIDEO") {- mobileBlur = true;- activeBlur();- return;- }- /// #endifconst ctrlIsPressed = isOnlyMeta(event);const backlinkBreadcrumbItemElement = hasClosestByClassName(event.target, "protyle-breadcrumb__item");if (backlinkBreadcrumbItemElement) {