Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix(styles): stop root overscroll none from suppressing inner scroll bounce (#20227)

Inneibd570b2a4198
diff --git a/src/styles/global.ts b/src/styles/global.ts
index ca1b25b23e9..e644d6639e7 100644
--- a/src/styles/global.ts
+++ b/src/styles/global.ts
@@ -19,6 +19,10 @@ const genGlobalStyle = ({ token }: { prefixCls: string; token: Theme }) => css`
@media (device-width >= 576px) {
overflow: hidden;
+
+ /* The root cannot scroll here, and a root 'none' also suppresses the
+ elastic overscroll of inner scrollers in Chromium on macOS. */
+ overscroll-behavior: auto;
}
}