Rotating viewport

Whenever I want to rotate the viewport it does so around the camera. How do I change it so that it rotates around the active object?

Pull down the preferences panel from the top,
Click the button on the bottom row for View + Controls
Then activate:

View Rotation: Trackball + Around selection.