diff --git a/app/src/mobile/util/showKeyboardToolbar.ts b/app/src/mobile/util/showKeyboardToolbar.ts index 76017c38d..622ceccca 100644 --- a/app/src/mobile/util/showKeyboardToolbar.ts +++ b/app/src/mobile/util/showKeyboardToolbar.ts @@ -18,7 +18,10 @@ export const showKeyboardToolbar = (bottom = 0) => { !window.siyuan.mobileEditor.protyle.wysiwyg.element.contains(range.startContainer)) { return; } - scrollCenter(window.siyuan.mobileEditor.protyle, undefined, false, (window.outerHeight - 65) / 2 - 30); + + setTimeout(() => { // Android 端事件需要滞后一些,所以这里统一延迟一下 + scrollCenter(window.siyuan.mobileEditor.protyle, undefined, false, (window.outerHeight - 65) / 2 - 30); + }, 100); }; export const hideKeyboardToolbar = () => {