mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-24 09:16:09 +01:00
This commit is contained in:
parent
a9b17850ef
commit
048d6a36df
1 changed files with 1 additions and 1 deletions
|
|
@ -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});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue