How to modify to implement the functions in the video?

Use the controller, first pan and then rotate, who can tell me how to do and the effect in the video? (not to change the position of the object)https://youtu.be/_Rt_gq6leFk

Your video is not public