@@ -49,7 +49,6 @@
camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 1000 );
controls = new THREE.DeviceOrientationControls( camera );
- controls.connect();
scene = new THREE.Scene();
@@ -90,4 +90,6 @@ THREE.DeviceOrientationControls = function ( object ) {
};
+ this.connect();
+
@@ -93,8 +93,6 @@
}, false);
-
animate();
@@ -103,4 +101,4 @@
</script>
</body>
-</html>
+</html>