From bf2cd7398cfa7f8e408db2d3e9a6e9cfee08343d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 22 Sep 2025 23:18:57 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/15889 --- app/src/protyle/scroll/event.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/scroll/event.ts b/app/src/protyle/scroll/event.ts index 00bf1f7d8..b29aa6578 100644 --- a/app/src/protyle/scroll/event.ts +++ b/app/src/protyle/scroll/event.ts @@ -67,9 +67,11 @@ export const scrollEvent = (protyle: IProtyle, element: HTMLElement) => { !protyle.wysiwyg.element.firstElementChild) { return; } - - if (protyle.scroll.lastScrollTop - element.scrollTop > 0) { - // up + if (protyle.scroll.lastScrollTop > element.scrollTop) { + if (element.scrollTop === 0) { + // 使用鼠标拖拽滚动条中无法准确获取 scrollTop,在此忽略 + return; + } if (element.scrollTop < element.clientHeight && protyle.wysiwyg.element.firstElementChild.getAttribute("data-eof") !== "1") { // 禁用滚动时会产生抖动 https://ld246.com/article/1666717094418