Camera orbiting where ever i drag my mouse I want the camera to orbit the object after pressing Numbad . but it won't orbit the object instead it basically orbits where ever i drag my mouse.
You have probably checked the Auto Depth option in the preferences. Uncheck it and you should be fine.