Shift middle mouse to pan works not all the time

I have trouble with panning - often times it rotates the view like i did press shift. I am starting to press the shift key twice to make it pan. less there is something I can do to make it work all the time. Also it seams autoperpective is constantly turning back on in the preferences. Not sure why perspective wont let us zoom in close.
Thanks