drag the mouse to let a camera around an object 360 rotation

Ive done a video when i recreate everything. will be up soon I think.