Skip to content

Conversation

@krusty-agent
Copy link
Collaborator

Fixes the weird scrolling behavior on mobile by:

  • Removing nested scroll container: Parent had overflow-hidden, main had overflow-y-auto - this creates competing scroll contexts
  • Letting body scroll naturally: Removed the constrained scroll container to allow native scrolling
  • Removed deprecated webkit property: Removed inline -webkit-overflow-scrolling: touch (deprecated and can cause jank)
  • Added proper touch handling: touch-action: pan-y pinch-zoom for smooth touch scrolling
  • Proper root layout: Added flex layout to #root for consistent height handling
  • Kept overscroll prevention: Maintained overscroll-behavior: none to prevent rubber-banding

The root cause was nested scroll containers fighting each other, making scrolling feel 'off' on mobile. This simplifies to let the browser handle scrolling natively, which feels much smoother.

Build tested: ✅ bun run build passes

- Remove nested scroll container (overflow-hidden parent + overflow-y-auto main)
- Let body scroll naturally for native mobile feel
- Remove deprecated -webkit-overflow-scrolling from inline styles
- Add touch-action: pan-y pinch-zoom for better touch handling
- Add proper #root flex layout for consistent height
- Keep overscroll-behavior: none to prevent rubber-banding

These changes eliminate the 'weird' scrolling behavior on mobile by
simplifying the scroll container hierarchy and letting the browser
handle scrolling natively.
@krusty-agent
Copy link
Collaborator Author

Duplicate of #104 (already merged)

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.

1 participant