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: Prevent mobile switches from triggering container scrolling https://github.com/siyuan-note/siyuan/issues/18403
Daniel61e8237bd4f6
diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.tsindex 421edd142b..65748ea872 100644--- a/app/src/mobile/index.ts+++ b/app/src/mobile/index.ts@@ -109,14 +109,15 @@ class App {showMessage(window.siyuan.languages.copied, 2000);event.preventDefault();}- if (["INPUT", "TEXTAREA"].includes(event.target.tagName)) {+ const editableElement = canInput(event.target);+ if (editableElement && ["INPUT", "TEXTAREA"].includes(editableElement.tagName)) {setTimeout(() => {- event.target.scrollIntoView({+ editableElement.scrollIntoView({block: "center",});}, Constants.TIMEOUT_TRANSITION);}- if (canInput(event.target)) {+ if (editableElement) {// 原生 App 通过桥接主动唤起键盘;移动端浏览器没有桥接,但点击可编辑区域后也会立刻触发 resize,// 进而调用 activeBlur 关闭键盘(比如三星键盘 https://github.com/siyuan-note/siyuan/issues/18078),所以此处也需要上锁if (window.JSAndroid && window.JSAndroid.showKeyboard || window.JSHarmony && window.JSHarmony.showKeyboard) {