mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 20:38:49 +01:00
This commit is contained in:
parent
2279fbfe8a
commit
0d69dc614b
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ export const scrollEvent = (protyle: IProtyle, element: HTMLElement) => {
|
|||
} else if ((element.scrollTop > element.scrollHeight - element.clientHeight * 1.8) &&
|
||||
protyle.wysiwyg.element.lastElementChild &&
|
||||
protyle.wysiwyg.element.lastElementChild.getAttribute("data-eof") !== "2") {
|
||||
if (element.scrollTop > protyle.scroll.lastScrollTop * 2) {
|
||||
if (element.scrollTop > 768 && element.scrollTop > protyle.scroll.lastScrollTop * 2) {
|
||||
// 使用鼠标拖拽滚动条时导致加载需进行矫正
|
||||
element.scrollTop = protyle.scroll.lastScrollTop;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue