Hello. I know, it is the best camera code.

I have tested your example too. And I have tested it now again.

But instead of

camera.pan -= mickey.x;

with the line:

camera.pan = cycle(camera.pan - mickey.x / 6.5 * mouseSpeedFac, 0, 360);


The mouseSpeedFac var is 1

And it does not look that smooth at 30 fps. It is hard to see if you use only the 3 box models. But maybe only my eyes are confuse wink I will recheck my other code stuff.