Explorar el Código

small fix - screen resize needs to refer to controls.screen sizes

Andrew Strelzoff hace 14 años
padre
commit
485122a150
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      examples/webgl_trackballcamera_earth.html

+ 2 - 2
examples/webgl_trackballcamera_earth.html

@@ -244,8 +244,8 @@
 				camera.aspect = width / height;
 				camera.updateProjectionMatrix();
 
-				camera.screen.width = width;
-				camera.screen.height = height;
+				controls.screen.width = width;
+				controls.screen.height = height;
 
 				camera.radius = ( width + height ) / 4;