Tweaked the panning and zooming.