Panning now works, fixed invertion