Skip to content

fix: mobile left side nav scrolls when content exceeds viewport#7

Closed
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-left-side-nav-scroll
Closed

fix: mobile left side nav scrolls when content exceeds viewport#7
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-left-side-nav-scroll

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 5, 2026

Summary

Fixes the mobile left sidebar nav (.docs-sidebar) not scrolling when opened as a drawer on viewports ≤ 1000 px.

Root cause

Two related issues:

  1. Body scroll interception — when the sidebar drawer was opened, body remained scrollable. On mobile, touch-scroll events were captured by the body instead of the fixed sidebar overlay, so the sidebar appeared frozen even though overflow-y: auto was set on it.

  2. No overscroll containment — once a user reached the top or bottom of the sidebar, the scroll event would chain to the body (rubber-band / momentum scroll on iOS), reinforcing the illusion that the sidebar itself was not scrollable.

Changes (showcase/showcase.css, inside @media (max-width: 1000px))

What Why
overscroll-behavior-y: contain added to .docs-sidebar Prevents scroll events from propagating to the body when the sidebar reaches its scroll boundary
body.docs-sidebar-open { overflow: hidden } added Locks body scroll while the drawer is open so touch events are captured by the sidebar

No changes to component stylesheets (styles/) — this is a showcase/docs shell concern only.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

🚀 PR Preview deployed!

📖 Open showcase preview

ℹ️ Production remains at root Pages URL. This preview is isolated to PR #7.

Run 25360099224 — commit 0b3f126

@wintermuted wintermuted closed this May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants