mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 移动端键盘弹起后光标定位居中 https://github.com/siyuan-note/siyuan/issues/6074
This commit is contained in:
@@ -20,7 +20,7 @@ export const showKeyboardToolbar = (bottom = 0) => {
|
||||
}
|
||||
|
||||
if ("android" === window.siyuan.config.system.container && window.JSAndroid) {
|
||||
// Android 端事件需要滞后一些,所以这里统一延迟一下
|
||||
// Android 端事件需要滞后一些,所以这里延迟一下
|
||||
setTimeout(() => {
|
||||
scrollCenter(window.siyuan.mobileEditor.protyle, undefined, false, (window.outerHeight - 65) / 2 - 30);
|
||||
}, 100);
|
||||
|
||||
Reference in New Issue
Block a user