Bug fixes in the panning, should be working fine now