From 8018d54f8ad8d1edcf2408cf53f1a4f9051d5ccf Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Mon, 3 Feb 2025 17:36:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=A8=E6=80=81=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=97=B6=E7=BC=96=E8=BE=91=E5=99=A8=E6=8A=96=E5=8A=A8=20(#1398?= =?UTF-8?q?3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix https://github.com/siyuan-note/siyuan/issues/13913 fix https://github.com/siyuan-note/siyuan/issues/10362 fix https://github.com/siyuan-note/siyuan/issues/6361 --- app/src/protyle/scroll/event.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/scroll/event.ts b/app/src/protyle/scroll/event.ts index 943c417e9..4113cd54b 100644 --- a/app/src/protyle/scroll/event.ts +++ b/app/src/protyle/scroll/event.ts @@ -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", {