Browse Source

Enable damping (#26969)

WestLangley 1 year ago
parent
commit
d50c76d7ca
1 changed files with 3 additions and 0 deletions
  1. 3 0
      examples/webgpu_lines_fat.html

+ 3 - 0
examples/webgpu_lines_fat.html

@@ -79,6 +79,7 @@
 				camera2.position.copy( camera.position );
 
 				controls = new OrbitControls( camera, renderer.domElement );
+				controls.enableDamping = true;
 				controls.minDistance = 10;
 				controls.maxDistance = 500;
 
@@ -182,6 +183,8 @@
 
 				renderer.setViewport( 0, 0, window.innerWidth, window.innerHeight );
 
+				controls.update();
+
 				renderer.autoClear = true;
 
 				scene.backgroundNode = null;