Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 移动端键盘弹起后光标定位居中 https://github.com/siyuan-note/siyuan/issues/6074

Liang Dinge2ea21a4eb85
diff --git a/app/src/mobile/util/showKeyboardToolbar.ts b/app/src/mobile/util/showKeyboardToolbar.ts
index f8fbbac436..622ceccca8 100644
--- a/app/src/mobile/util/showKeyboardToolbar.ts
+++ b/app/src/mobile/util/showKeyboardToolbar.ts
@@ -19,7 +19,7 @@ export const showKeyboardToolbar = (bottom = 0) => {
return;
}
- setTimeout(() => {
+ setTimeout(() => { // Android 端事件需要滞后一些,所以这里统一延迟一下
scrollCenter(window.siyuan.mobileEditor.protyle, undefined, false, (window.outerHeight - 65) / 2 - 30);
}, 100);
};