[PR #190] [MERGED] Fix Android intro typewriter blocking touch-scroll in Game Mode #4496

Closed
opened 2026-10-22 04:08:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/190
Author: @Romuromylus
Created: 4/22/2026
Status: ✅ Merged
Merged: 4/23/2026
Merged by: @SpicyMarinara

Base: main ← Head: fix-android-intro-scroll


📝 Commits (1)

  • e2c1226 Fix Android intro typewriter blocking touch-scroll

📊 Changes

1 file changed (+7 additions, -4 deletions)

View changed files

📝 packages/client/src/components/game/GameSurface.tsx (+7 -4)

📄 Description

Summary

  • In Game Mode, the intro world-overview screen was unscrollable on Android after a new game was started. Desktop mouse-wheel worked fine.
  • Root cause: IntroTypewriter in GameSurface.tsx wrapped its text in a <div className="overflow-y-auto"> and auto-scrolled that inner div. The inner div had no height constraint so it never actually scrolled — but on Android Chrome the nested overflow container still captured touch events and blocked scroll-chaining up to the parent (min-h-0 flex-1 overflow-y-auto). Desktop mouse-wheel chains through nested overflow naturally, which is why Windows was unaffected.
  • Fix: drop the inner overflow-y-auto and track the reveal edge with a sentinel <span> + scrollIntoView({ block: "end" }). The outer scroll container now handles touch input unimpeded, and the reveal-follow behavior is preserved.

Test plan

  • TypeScript check passes (pnpm --filter @marinara-engine/client exec tsc --noEmit).
  • Tested on Android in a live deployment: scroll works during and after typewriter reveal.
  • Reveal edge still scrolls into view as characters appear.
  • Desktop (Chrome on Windows) still scrolls fine with mouse wheel.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/190 **Author:** [@Romuromylus](https://github.com/Romuromylus) **Created:** 4/22/2026 **Status:** ✅ Merged **Merged:** 4/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `fix-android-intro-scroll` --- ### 📝 Commits (1) - [`e2c1226`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e2c12269a87ed1f20f615f0227a820df0fe219b8) Fix Android intro typewriter blocking touch-scroll ### 📊 Changes **1 file changed** (+7 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/game/GameSurface.tsx` (+7 -4) </details> ### 📄 Description ## Summary - In Game Mode, the intro world-overview screen was unscrollable on Android after a new game was started. Desktop mouse-wheel worked fine. - Root cause: `IntroTypewriter` in [GameSurface.tsx](packages/client/src/components/game/GameSurface.tsx) wrapped its text in a `<div className="overflow-y-auto">` and auto-scrolled that inner div. The inner div had no height constraint so it never actually scrolled — but on Android Chrome the nested overflow container still captured touch events and blocked scroll-chaining up to the parent (`min-h-0 flex-1 overflow-y-auto`). Desktop mouse-wheel chains through nested overflow naturally, which is why Windows was unaffected. - Fix: drop the inner `overflow-y-auto` and track the reveal edge with a sentinel `<span>` + `scrollIntoView({ block: "end" })`. The outer scroll container now handles touch input unimpeded, and the reveal-follow behavior is preserved. ## Test plan - [x] TypeScript check passes (`pnpm --filter @marinara-engine/client exec tsc --noEmit`). - [x] Tested on Android in a live deployment: scroll works during and after typewriter reveal. - [x] Reveal edge still scrolls into view as characters appear. - [x] Desktop (Chrome on Windows) still scrolls fine with mouse wheel. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:08:09 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4496
No description provided.