mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-12 07:32:34 +01:00
This commit is contained in:
parent
1eebdf9029
commit
c11c434502
2 changed files with 16 additions and 11 deletions
|
|
@ -64,6 +64,7 @@ export const scrollEvent = (protyle: IProtyle, element: HTMLElement) => {
|
|||
const blockElement = hasClosestBlock(targetElement);
|
||||
if (!blockElement) {
|
||||
if ((protyle.wysiwyg.element.firstElementChild.getAttribute("data-eof") === "1" ||
|
||||
// goHome 时 data-eof 不为 1
|
||||
protyle.wysiwyg.element.firstElementChild.getAttribute("data-node-index") === "0") &&
|
||||
(hasClosestByClassName(targetElement, "protyle-background") || hasClosestByClassName(targetElement, "protyle-title"))) {
|
||||
const inputElement = protyle.scroll.element.querySelector(".b3-slider") as HTMLInputElement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue