From 29b9252b9739769f5749f80cdfc28d27a0800444 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Tue, 30 Jan 2024 14:21:18 +0800 Subject: [PATCH] Update scroll speed --- src/pages/Home2/PCLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Home2/PCLayout.tsx b/src/pages/Home2/PCLayout.tsx index db6ac8d2..5e6a5409 100644 --- a/src/pages/Home2/PCLayout.tsx +++ b/src/pages/Home2/PCLayout.tsx @@ -14,7 +14,7 @@ export default function PCLayout({ children }: PropsWithChildren) { const listener = (ev: WheelEvent) => { const delta = Math.sign(ev.deltaY); if (ref.current) { - ref.current.scrollLeft += delta * 10; + ref.current.scrollLeft += delta * 30; } ev.preventDefault(); };