Vanessa 2022-10-07 20:08:39 +08:00
parent df298125ec
commit e0be2e345a
2 changed files with 10 additions and 5 deletions

View file

@ -19,9 +19,14 @@ export const showKeyboardToolbar = (bottom = 0) => {
return;
}
setTimeout(() => { // Android 端事件需要滞后一些,所以这里统一延迟一下
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);
}, 100);
}
};
export const hideKeyboardToolbar = () => {