Skip to content

Conversation

@kfastov
Copy link

@kfastov kfastov commented Jan 13, 2026

Summary

  • Use viewport size (visualViewport/inner) instead of screen.* for fullscreen canvas sizing
  • Recompute sizing after fullscreenchange to avoid early/stale innerWidth/innerHeight values
  • Preserve windowed sizing baseline across fullscreen resize events to restore correct windowed size on exit

Issue

Fixes #26096

Testing

  • Manual repro on macOS 26.2 (MacBook Pro 14-inch, 2021) + Chrome 143.0.7499.193
  • No automated test (hardware/OS-specific)

@kfastov kfastov marked this pull request as draft January 13, 2026 11:22
@kfastov
Copy link
Author

kfastov commented Jan 13, 2026

Just found a problem in my code, checking again to find better solution

@kfastov kfastov marked this pull request as ready for review January 14, 2026 06:24
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.

Fullscreen canvas sizing uses screen.* leading to letterboxing on macOS

1 participant