small change to camera pan - ignores x instead of y

panning needs serious changing