Vanessa 2025-09-21 21:46:27 +08:00
parent f96298e34c
commit b262d63085

View file

@ -166,7 +166,7 @@ const setHTML = (options: {
removeElements.forEach(item => {
item.remove();
});
protyle.contentElement.scrollTop = protyle.contentElement.scrollTop + (removeElement.getBoundingClientRect().top - lastRemoveTop);
protyle.contentElement.scrollTop = protyle.contentElement.scrollTop + (removeElement.getBoundingClientRect().top - lastRemoveTop) - 1;
protyle.scroll.lastScrollTop = protyle.contentElement.scrollTop;
hideElements(["toolbar"], protyle);
}