From 1d9bd070d18fa42d99850e9e08add84bc6d44072 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 7 Oct 2022 19:59:11 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E9=94=AE?= =?UTF-8?q?=E7=9B=98=E5=BC=B9=E8=B5=B7=E5=90=8E=E5=85=89=E6=A0=87=E5=AE=9A?= =?UTF-8?q?=E4=BD=8D=E5=B1=85=E4=B8=AD=20https://github.com/siyuan-note/si?= =?UTF-8?q?yuan/issues/6074?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/mobile/util/showKeyboardToolbar.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/mobile/util/showKeyboardToolbar.ts b/app/src/mobile/util/showKeyboardToolbar.ts index 76017c38d..f8fbbac43 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(() => { + scrollCenter(window.siyuan.mobileEditor.protyle, undefined, false, (window.outerHeight - 65) / 2 - 30); + }, 100); }; export const hideKeyboardToolbar = () => {