Only set pan after setting zoom, fixes #22