Repository navigation
Versão web mais segura no iPhone (Safari iOS) - #2
Merged
Merged
Conversation
- Block browser gestures on the game and menu screens (touch-action: none). iOS ignores user-scalable=no, so two players tapping at the same time could be read as a pinch and zoom the page. The help card still scrolls. - Audio: iOS only starts Web Audio from touchend/click and can leave the context "interrupted" after a call or the lock screen, so retry the unlock on every tap and resume from that state too. - README: how to install on iPhone and what differs there (no vibration, silent switch mutes sound, use the rotation lock). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G6VuNJKhVgrfHS1yPhYdHq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Porquê
Revisão da versão web a pensar no Safari do iPhone. O jogo só usa funcionalidades suportadas desde o iOS 14.5, mas havia dois comportamentos específicos do iOS que podiam estragar uma partida.
O que muda
user-scalable=no, por isso dois jogadores a tocar ao mesmo tempo podiam ser lidos como um "beliscar" e fazer zoom na página. Os ecrãs de jogo e de menu passam a tertouch-action: none. A janela de ajuda continua a deslizar.touchend/clicke pode deixar o som "interrompido" depois de uma chamada ou de bloquear o ecrã. Agora o desbloqueio é tentado em cada toque e o som é retomado também a partir do estadointerrupted.Como foi testado
tsc --noEmit, os 45 testes enpm run buildpassam.touch-actionénonenos ecrãs e não houve erros na consola.Generated by Claude Code