From aa36b95bdb084b3cb4659fa5cffc24ae6c619e5e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 13 Dec 2024 11:50:38 +0800 Subject: [PATCH] :art: https://ld246.com/article/1734018624070 --- app/src/protyle/scroll/event.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/scroll/event.ts b/app/src/protyle/scroll/event.ts index 0706aabe4..943c417e9 100644 --- a/app/src/protyle/scroll/event.ts +++ b/app/src/protyle/scroll/event.ts @@ -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) {