[PR #1051] [MERGED] Fix game wheel navigation content clicks #4901

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1051
Author: @cha1latte
Created: 5/20/2026
Status: ✅ Merged
Merged: 5/20/2026
Merged by: @cha1latte

Base: staging ← Head: fix/issue-1040-wheel-click-nav-v2


📝 Commits (1)

  • d9ad9b7 Fix game wheel navigation content clicks

📊 Changes

5 files changed (+14 additions, -3 deletions)

View changed files

➕ docs/pr-evidence/issue-1040/after.png (+0 -0)
➕ docs/pr-evidence/issue-1040/before.png (+0 -0)
📝 packages/client/src/components/game/GameCharacterSheet.tsx (+5 -1)
📝 packages/client/src/components/game/GameNarration.tsx (+8 -2)
📝 packages/client/src/components/game/GameSurface.tsx (+1 -0)

📄 Description

Linked issue

Closes #1040

Why this change

  • Game mode mouse-wheel + click navigation was treating narration text, side responses, and character-sheet content as background navigation targets, which interrupted text selection and normal content interaction.

What changed

  • Marked the game narration card and side-response container as non-background navigation zones.
  • Marked the game character sheet modal as a non-background navigation zone.
  • Ignored Ctrl-wheel events so browser/trackpad zoom gestures do not move game wheel navigation.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Codex browser proof reproduced the bug before the fix with node scratch/issue-1040-repro.mjs --no-launch --port=9459: clicking selectable game narration text advanced to the next segment.
  • Codex browser proof passed after the fix with node scratch/issue-1040-repro.mjs --fixed --no-launch --port=9464: narration text click stayed put, Ctrl-wheel stayed put, background click still advanced, and character-sheet text click stayed put.
  • pnpm check passed locally.
  • Bunny review passed for the focused diff and proof.
  • No human-only verification blockers identified.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs, release, schema, dependency, or version files changed.

UI evidence (if applicable)

Before:

Before: text click still triggers game navigation

After:

After: text click stays put while background navigation remains available


🔄 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/1051 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/20/2026 **Status:** ✅ Merged **Merged:** 5/20/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `fix/issue-1040-wheel-click-nav-v2` --- ### 📝 Commits (1) - [`d9ad9b7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d9ad9b7114d243befcdde849d08776e99521c72a) Fix game wheel navigation content clicks ### 📊 Changes **5 files changed** (+14 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-1040/after.png` (+0 -0) ➕ `docs/pr-evidence/issue-1040/before.png` (+0 -0) 📝 `packages/client/src/components/game/GameCharacterSheet.tsx` (+5 -1) 📝 `packages/client/src/components/game/GameNarration.tsx` (+8 -2) 📝 `packages/client/src/components/game/GameSurface.tsx` (+1 -0) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #1040 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Game mode mouse-wheel + click navigation was treating narration text, side responses, and character-sheet content as background navigation targets, which interrupted text selection and normal content interaction. ## What changed <!-- List the key changes in this PR --> - Marked the game narration card and side-response container as non-background navigation zones. - Marked the game character sheet modal as a non-background navigation zone. - Ignored Ctrl-wheel events so browser/trackpad zoom gestures do not move game wheel navigation. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex browser proof reproduced the bug before the fix with `node scratch/issue-1040-repro.mjs --no-launch --port=9459`: clicking selectable game narration text advanced to the next segment. - Codex browser proof passed after the fix with `node scratch/issue-1040-repro.mjs --fixed --no-launch --port=9464`: narration text click stayed put, Ctrl-wheel stayed put, background click still advanced, and character-sheet text click stayed put. - `pnpm check` passed locally. - Bunny review passed for the focused diff and proof. - No human-only verification blockers identified. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs, release, schema, dependency, or version files changed. ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> Before: ![Before: text click still triggers game navigation](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/d9ad9b7114d243befcdde849d08776e99521c72a/docs/pr-evidence/issue-1040/before.png) After: ![After: text click stays put while background navigation remains available](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/d9ad9b7114d243befcdde849d08776e99521c72a/docs/pr-evidence/issue-1040/after.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:35 +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#4901
No description provided.