Skip to content

Fix hands clipped off-screen on narrow (mobile) viewports#5

Merged
FabianIMV merged 1 commit into
mainfrom
claude/rock-paper-scissors-rebuild-o6zu5n
Jul 11, 2026
Merged

Fix hands clipped off-screen on narrow (mobile) viewports#5
FabianIMV merged 1 commit into
mainfrom
claude/rock-paper-scissors-rebuild-o6zu5n

Conversation

@FabianIMV

Copy link
Copy Markdown
Owner

No description provided.

The camera used a fixed vertical FOV tuned for a desktop-ish aspect
ratio. On a tall phone viewport the horizontal FOV shrank along with
it, pushing the two hands — offset sideways from centre — mostly out
of frame (reported on Chrome iOS).

fitFov() now widens the vertical FOV on narrow aspect ratios to keep
the horizontal field of view roughly constant, so the hands stay
framed regardless of screen shape. Applied on init and on resize.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0135timkxZn4iRgeQjiXtyE7
@FabianIMV
FabianIMV merged commit 73a9500 into main Jul 11, 2026
1 of 2 checks passed
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