Skip to content

Fix Tetris mobile: controls layout, grid sizing, no double-tap zoom#12

Merged
github-actions[bot] merged 1 commit into
mainfrom
claude/tetris-fix-v2
May 10, 2026
Merged

Fix Tetris mobile: controls layout, grid sizing, no double-tap zoom#12
github-actions[bot] merged 1 commit into
mainfrom
claude/tetris-fix-v2

Conversation

@samoletovs
Copy link
Copy Markdown
Owner

Three mobile fixes for Tetris:

  • Double-tap zoom: touch-action: manipulation on buttons — browser won't zoom when tapping fast
  • Controls split: left thumb gets ← and ↓ stacked; right thumb gets 2×2 grid (↑ rotate, →, ⤓ hard drop, ⇆ hold). Auto-repeat when holding left/right/down.
  • Grid fills board: fitCanvas() now JS-driven (measures play-area + side panels, sets board width/height). draw() uses cellH = h/ROWS separately from cellW = w/COLS so pieces are correct height.

Generated by Claude Code

- Left thumb: ← and ↓ stacked; right thumb: 2×2 grid (↑ rotate, →, ⤓ drop, ⇆ hold)
- touch-action: manipulation on buttons stops browser double-tap zoom
- Auto-repeat on left/right/down held (200ms → 60ms interval)
- JS-driven fitCanvas: measures play-area + side panels, sets board size explicitly
- draw() uses cellH = h/ROWS separate from cellW = w/COLS — pieces fill full board height

https://claude.ai/code/session_01V6s7b7ReDstVRgFcuZbkx7
@github-actions github-actions Bot merged commit 61978c2 into main May 10, 2026
1 check passed
@github-actions github-actions Bot deleted the claude/tetris-fix-v2 branch May 10, 2026 07:08
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