Camera is still moving a bit after i release the mouse

Hello everyone,

This default example describes my problem, when i click on the model, or somewhere on the screen and drag the mouse, camera start to move around the model as expected, but when i release the mouse camera continues to move a bit, the main idea is that i don’t want this movement after i will release the mouse, i think it’s a default behavior of Three.js, but i don’t need it))
Is there a way to stop cameras movement right after i will release the mouse??

try adding enableDamping = false like so…

<OrbitControls makeDefault minPolarAngle={Math.PI / 2} maxPolarAngle={Math.PI / 2} enableDamping={false}/>
1 Like

Thanks, that solved the issue

1 Like