Fixed a silly issue with panning and zooming in/out that got introduced while recently refactoring some code.