mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 移动端键盘弹起后光标定位居中 https://github.com/siyuan-note/siyuan/issues/6074
This commit is contained in:
parent
63aef7a8c0
commit
1d9bd070d1
1 changed files with 4 additions and 1 deletions
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue