Panning, can it be done using x and y coordinates only?


As i mentioned before, i am developing an application that has 3dsmax like interface. Can I implement panning using x and Y xis only. at the moment the problem is it works correctly if there is no rotaion but if the rotation angle is 180 degree the panning is revefrsed. I dont want to use the z axis.

It can be done using translation first and then rotation but my app requires me to do rotation first and then translation thats why panning is reversed. for angles > 90