When you usually pan the viewport, you hold mouse 3 and drag. Somehow, my point of rotation is messed up and does not orbit the object selected. I've tried toggling "Rotate around selection' in the options but its still not working. I have no idea how this happened. I usually click 1 and 3 to quickly rotate around what I'm working on but since the point of rotation is somewhere else, I get completely lost.