mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 07:46:09 +01:00
🚨
This commit is contained in:
parent
0f97325d51
commit
6a143c699f
5 changed files with 9 additions and 9 deletions
|
|
@ -23,7 +23,7 @@ export const showKeyboardToolbar = (bottom = 0) => {
|
|||
toolbarElement.style.bottom = bottom + "px";
|
||||
|
||||
setTimeout(() => {
|
||||
const contentElement = window.siyuan.mobileEditor.protyle.contentElement
|
||||
const contentElement = window.siyuan.mobileEditor.protyle.contentElement;
|
||||
const cursorTop = getSelectionPosition(contentElement).top - contentElement.getBoundingClientRect().top;
|
||||
if (cursorTop < window.innerHeight - 96) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue