mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
This commit is contained in:
parent
fd5c60c054
commit
aa36b95bdb
1 changed files with 3 additions and 1 deletions
|
|
@ -61,7 +61,9 @@ export const scrollEvent = (protyle: IProtyle, element: HTMLElement) => {
|
|||
}
|
||||
if (protyle.wysiwyg.element.getAttribute("data-top") || protyle.block.showAll ||
|
||||
(protyle.scroll && protyle.scroll.element.classList.contains("fn__none")) || !protyle.scroll ||
|
||||
protyle.scroll.lastScrollTop === element.scrollTop || protyle.scroll.lastScrollTop === -1) {
|
||||
protyle.scroll.lastScrollTop === element.scrollTop || protyle.scroll.lastScrollTop === -1 ||
|
||||
// 移动端跳转的时候会设置 wysiwyg.element.innerHTML = "";
|
||||
!protyle.wysiwyg.element.firstElementChild) {
|
||||
return;
|
||||
}
|
||||
if (protyle.scroll.lastScrollTop - element.scrollTop > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue