In the 2D view, press and hold Shift and the left mouse button. Now move the mouse up or down to zoom in or out.