GitHub repo

These buttons will be disabled whenever a transition is occuring and then re-enabled when the transition is complete.

The rest event will fire when the camera slows to less than controls.restThreshold units in a single frame. You can set this value here

The sleep event will fire once the camera completely stops. Due to damping, this is often long after it appears to have stopped.