mirror of
https://github.com/tiennm99/gsd-framework.git
synced 2026-05-28 00:25:48 +00:00
feat(06-03): add touch-action CSS for mobile optimization
- Add touch-action: none to canvas to prevent zoom/scroll - Add overflow: hidden to body to prevent page scroll - Mobile touch gestures now properly blocked during gameplay 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -16,9 +16,11 @@
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
background-color: #1a1a2e;
|
||||
overflow: hidden; /* Prevent scroll */
|
||||
}
|
||||
#game {
|
||||
border-radius: 8px;
|
||||
touch-action: none; /* Prevent all touch gestures */
|
||||
}
|
||||
#score-display {
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user