mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-12 07:32:34 +01:00
This commit is contained in:
parent
c98997045a
commit
05a7690c62
2 changed files with 5 additions and 1 deletions
|
|
@ -67,6 +67,7 @@ export class Scroll {
|
|||
return;
|
||||
}
|
||||
protyle.wysiwyg.element.setAttribute("data-top", protyle.wysiwyg.element.scrollTop.toString());
|
||||
protyle.contentElement.style.overflow = "hidden";
|
||||
fetchPost("/api/filetree/getDoc", {
|
||||
index: parseInt(this.inputElement.value),
|
||||
id: protyle.block.parentID,
|
||||
|
|
@ -78,6 +79,9 @@ export class Scroll {
|
|||
protyle,
|
||||
action: [Constants.CB_GET_FOCUSFIRST, Constants.CB_GET_UNCHANGEID],
|
||||
afterCB: () => {
|
||||
setTimeout(() => {
|
||||
protyle.contentElement.style.overflow = "";
|
||||
}, Constants.TIMEOUT_INPUT); // 需和 onGet 中的 preventScroll 保持一致
|
||||
showTooltip(this.element.getAttribute("aria-label"), this.element);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue