did you push alt before panning ?
if something strange happens with maya usually
you need to delete preferences file
which is located by default at %user%documents/maya/"version"/ find all preferences and delete them
but , if will delete your preferences also - hotkey if any assigned customly etc etc ...