How do you instantly stop/freeze OrbitControl's effect on camera rotation?

You you use vanilla JS, this might help a bit: