OrbitControls now supports damping / inertia.
controls = new THREE.OrbitControls( camera, renderer.domElement ); controls.enableDamping = true; controls.dampingFactor = 0.05;
Then in the animation loop add
controls.update(); // required if controls.enableDamping = true, or if controls.autoRotate = true
three.js r.108
source share