Переглянути джерело

improve mouse drag interaction (#24844)

sunag 2 роки тому
батько
коміт
d95e790fb0
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      examples/webgpu_equirectangular.html

+ 2 - 2
examples/webgpu_equirectangular.html

@@ -72,8 +72,8 @@
 
 				controls = new OrbitControls( camera, renderer.domElement );
 				controls.autoRotate = true;
-				controls.minDistance = 2;
-				controls.maxDistance = 10;
+				controls.rotateSpeed = - 0.125; // negative, to track mouse pointer
+				controls.autoRotateSpeed = 1.0;
 
 				window.addEventListener( 'resize', onWindowResize );