Add panning by dragging middle mouse

Fixes #8.