Skip to content

Commit 740b0ae

Browse files
committed
Merge pull request mrdoob#7050 from WestLangley/dev-orbit_cleanup
Cleanup following OrbitControls property name changes
2 parents d0dae72 + 2123d28 commit 740b0ae

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

docs/scenes/bones-browser.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
document.body.appendChild( renderer.domElement );
6262

6363
orbit = new THREE.OrbitControls( camera, renderer.domElement );
64-
orbit.noZoom = true;
64+
orbit.enableZoom = false;
6565

6666
ambientLight = new THREE.AmbientLight( 0x000000 );
6767
scene.add( ambientLight );

docs/scenes/geometry-browser.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
document.body.appendChild( renderer.domElement );
6363

6464
var orbit = new THREE.OrbitControls( camera, renderer.domElement );
65-
orbit.noZoom = true;
65+
orbit.enableZoom = false;
6666

6767
var ambientLight = new THREE.AmbientLight( 0x000000 );
6868
scene.add( ambientLight );

examples/webgl_loader_sea3d_hierarchy.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@
9696
camera.rotation.copy( cam.rotation );
9797

9898
controls = new THREE.OrbitControls( camera );
99-
controls.noZoom = true;
100-
controls.noPan = true;
99+
controls.enableZoom = false;
100+
controls.enablePan = false;
101101

102102
animate();
103103

examples/webgl_terrain_dynamic.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,6 @@
286286
controls.zoomSpeed = 1.2;
287287
controls.panSpeed = 0.8;
288288

289-
controls.noZoom = false;
290-
controls.noPan = false;
291-
292289
controls.keys = [ 65, 83, 68 ];
293290

294291
// SCENE (FINAL)

0 commit comments

Comments
 (0)