An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:iphone: 输入框判断改进
Vanessa5325001d2430
diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.tsindex 4dae3daf1e..aaac0fe46b 100644--- a/app/src/mobile/index.ts+++ b/app/src/mobile/index.ts@@ -94,7 +94,11 @@ class App {showMessage(window.siyuan.languages.copied, 2000);event.preventDefault();}-+ if (["INPUT", "TEXTAREA"].includes(event.target.tagName)) {+ setTimeout(() => {+ event.target.scrollIntoView();+ }, Constants.TIMEOUT_TRANSITION);+ }if (isInIOS()) {return;}@@ -104,9 +108,6 @@ class App {(event.target.tagName === "INPUT" && ["email", "number", "password", "search", "tel", "text", "url", ""].includes(event.target.getAttribute("type")))) &&event.target.getAttribute("readonly") !== "readonly") {editElement = event.target;- setTimeout(() => {- editElement.scrollIntoView();- }, Constants.TIMEOUT_TRANSITION);} else if (wysisygElement && wysisygElement.getAttribute("data-readonly") === "false") {editElement = hasClosestByAttribute(event.target, "contenteditable", "true") as HTMLElement;}diff --git a/app/stage/auth.html b/app/stage/auth.htmlindex 403ca5ca30..090bf7ad90 100644--- a/app/stage/auth.html+++ b/app/stage/auth.html@@ -578,9 +578,6 @@if (event.target.tagName === "INPUT" &&["email", "number", "password", "search", "tel", "text", "url", ""].includes(event.target.getAttribute("type")) &&event.target.getAttribute("readonly") !== "readonly") {- setTimeout(() => {- event.target.scrollIntoView();- }, Constants.TIMEOUT_TRANSITION);if (window.JSAndroid && window.JSAndroid.showKeyboard) {window.JSAndroid.showKeyboard();} else if (window.JSHarmony && window.JSHarmony.showKeyboard) {