Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2022-10-07 20:00:55 +08:00
commit df298125ec

View File

@ -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 = () => {