Fix panning while zooming. Fixes #174