79616371

Date: 2025-05-11 10:07:21
Score: 1
Natty:
Report link

This is very old, but I also struggled with this bug.

The following eventually worked: Set minimum-scale=1;

 <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />

renderer.setSize( window.innerWidth, window.innerHeight ) somehow messes up the innerWidth and innerHeight. This also happens if the 3rd argument is false (updateStyle) and you set renderer.domElement styles manually.

setting minimum-scale=1 prevents scaling to accommodate the canvas.

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: rittels