Skip to content

Commit

Permalink
fix: 动态加载时编辑器抖动 (#13983)
Browse files Browse the repository at this point in the history
fix #13913

fix #10362

fix #6361
  • Loading branch information
TCOTC authored Feb 3, 2025
1 parent 586908b commit 8018d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/protyle/scroll/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const scrollEvent = (protyle: IProtyle, element: HTMLElement) => {
if (element.scrollTop < element.clientHeight &&
protyle.wysiwyg.element.firstElementChild.getAttribute("data-eof") !== "1") {
// 禁用滚动时会产生抖动 https://ld246.com/article/1666717094418
protyle.contentElement.style.width = (protyle.contentElement.clientWidth) + "px";
protyle.contentElement.style.width = (protyle.contentElement.offsetWidth) + "px";
protyle.contentElement.style.overflow = "hidden";
protyle.wysiwyg.element.setAttribute("data-top", element.scrollTop.toString());
fetchPost("/api/filetree/getDoc", {
Expand Down

0 comments on commit 8018d54

Please sign in to comment.