From da3ec54e66cf64010a3599736d41082f0a5133d4 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Mon, 3 Feb 2025 13:47:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BC=A0=E6=A0=87=E5=9C=A8=20.protyle-s?= =?UTF-8?q?croll=20=E4=B8=8A=E6=97=A0=E6=B3=95=E6=BB=9A=E5=8A=A8=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/scroll/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/scroll/index.ts b/app/src/protyle/scroll/index.ts index 25f53b559b0..99ab6c0cff1 100644 --- a/app/src/protyle/scroll/index.ts +++ b/app/src/protyle/scroll/index.ts @@ -58,7 +58,7 @@ export class Scroll { this.parentElement.addEventListener("mousewheel", (event: WheelEvent) => { if (protyle.contentElement.scrollTop + event.deltaY < protyle.contentElement.clientHeight) { // 禁用滚动时会产生抖动 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", protyle.contentElement.scrollTop.toString()); fetchPost("/api/filetree/getDoc", {