From 6db5682a0e139e8b76c7beb0d7e45c0fd33a2dc8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 7 Nov 2022 23:50:07 +0800 Subject: [PATCH] :iphone: fix https://github.com/siyuan-note/siyuan/issues/6514 --- app/src/mobile/util/showKeyboardToolbar.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/src/mobile/util/showKeyboardToolbar.ts b/app/src/mobile/util/showKeyboardToolbar.ts index 4a7f3af61..fc01c953d 100644 --- a/app/src/mobile/util/showKeyboardToolbar.ts +++ b/app/src/mobile/util/showKeyboardToolbar.ts @@ -33,16 +33,7 @@ export const showKeyboardToolbar = (bottom = 0) => { left: contentElement.scrollLeft, behavior: "smooth" }); - alert(cursorTop + "," + window.innerHeight); }, Constants.TIMEOUT_TRANSITION); - // if ("android" === window.siyuan.config.system.container && window.JSAndroid) { - // // Android 端事件需要滞后一些,所以这里延迟一下 - // setTimeout(() => { - // scrollCenter(window.siyuan.mobileEditor.protyle, undefined, false, (window.outerHeight - 65) / 2 - 30); - // }, 100); - // } else { - // scrollCenter(window.siyuan.mobileEditor.protyle, undefined, false, (window.outerHeight - 65) / 2 - 30); - // } }; export const hideKeyboardToolbar = () => {