Skip to content

Commit

Permalink
🚨
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Sep 18, 2023
1 parent 57f9c4d commit 1eebdf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/protyle/scroll/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export const scrollEvent = (protyle: IProtyle, element: HTMLElement) => {
const targetElement = document.elementFromPoint(elementRect.left + elementRect.width / 2, elementRect.top + 10);
const blockElement = hasClosestBlock(targetElement);
if (!blockElement) {
if (protyle.wysiwyg.element.firstElementChild.getAttribute("data-eof") === "1" &&
if ((protyle.wysiwyg.element.firstElementChild.getAttribute("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;
inputElement.value = "1";
Expand Down

0 comments on commit 1eebdf9

Please sign in to comment.