From 048d6a36df7d3c91d804c4a4eba9a11402c3511a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 19 Feb 2025 17:53:11 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14004 --- app/src/protyle/scroll/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/scroll/index.ts b/app/src/protyle/scroll/index.ts index 8f48c5519..f1dcd88a0 100644 --- a/app/src/protyle/scroll/index.ts +++ b/app/src/protyle/scroll/index.ts @@ -56,7 +56,7 @@ export class Scroll { } }); this.parentElement.addEventListener("mousewheel", (event: WheelEvent) => { - if (event.deltaY !== 0) { + if (event.deltaY !== 0 && protyle.scroll.lastScrollTop !== -1) { protyle.contentElement.scrollTop += event.deltaY; } }, {passive: true});