From 0f7286b858e533e980cbdba65922d1dcfba521a5 Mon Sep 17 00:00:00 2001 From: xintaofei Date: Sun, 12 Apr 2026 22:39:31 +0800 Subject: [PATCH] fix(frontend): prevent body OverlayScrollbar from intercepting message list scroll events The body-level OverlayScrollbar (position: fixed, z-index: 99999) with clickScroll and dragScroll enabled was capturing pointer events on the scrollbar track, preventing the message list's native scrollbar from receiving them. Disable both interactions on the body instance since it does not need to scroll. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/components/overlay-scrollbars-init.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/overlay-scrollbars-init.tsx b/src/components/overlay-scrollbars-init.tsx index c4f6c9e..da65638 100644 --- a/src/components/overlay-scrollbars-init.tsx +++ b/src/components/overlay-scrollbars-init.tsx @@ -10,7 +10,7 @@ export function OverlayScrollbarsInit() { scrollbars: { theme: "os-theme-codeg", autoHide: "leave", - clickScroll: true, + dragScroll: false, }, overflow: { x: "hidden" }, }, @@ -22,4 +22,4 @@ export function OverlayScrollbarsInit() { }, [init]) return null -} \ No newline at end of file +}