Mobile (iPhone): touch-and-hold triggers iOS text-selection over the game canvas #60
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/cellblock#60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom (operator playtest, 2026-06-21, iPhone)
Operator: "During the play on the iPhone the browser sometimes seems to select the game as text (there is a selection displayed at times)".
While playing on iPhone Safari, touch interactions on the canvas/game area intermittently trigger the iOS text-selection gesture — a selection rectangle or loupe appears over the game, interfering with gameplay.
Root cause
iOS Safari treats long-press on most page elements as a text-selection gesture, even when the content isnt text (canvas, DOM elements without
user-select: none). The browser tries to be helpful and offers selection/copy UI; for a game canvas this is purely disruptive.Fix
Apply CSS to the canvas element and the game container:
May also need
-webkit-tap-highlight-color: transparent;to disable the tap-flash that iOS shows.Know trade-off:
user-select: noneon the WHOLE page would block selection on legitimate text (eg leaderboard names, debug overlay). Scope to canvas + touch-control elements; leave text content selectable.Acceptance criteria
Lane
Shipwright (CSS + render container styling). Probably small standalone PR or bundle with #57 layout work.
Effort
Size/S — a few CSS rules + careful scoping. Quick fix relative to the rest of the mobile work.
Anchor
Operator iPhone playtest 2026-06-21 17:27. Filed alongside #57 portrait-layout + #58 initials-entry as part of the cellblock mobile-session batch.