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
This commit is contained in:
2026-03-11 13:34:53 +00:00
parent 5c94fb4ca6
commit 154010ea66
+2
View File
@@ -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;