diff --git a/examples/misc_controls_deviceorientation.html b/examples/misc_controls_deviceorientation.html
index a2f94327638bb5..6a32f6a9b82b8a 100644
--- a/examples/misc_controls_deviceorientation.html
+++ b/examples/misc_controls_deviceorientation.html
@@ -40,66 +40,70 @@
+ }
+
+ function onWindowResize() {
+
+ camera.aspect = window.innerWidth / window.innerHeight;
+ camera.updateProjectionMatrix();
+ renderer.setSize( window.innerWidth, window.innerHeight );
+
+ }
+
+