The paning
Dont battle so close to walls. (cause of the pan in and out) The camera goes with the walls. Also dont use j,k,l,u,i,o keys while meleeing. Those are some camera rotational keys.
The Spinning
Second, some lazer mouses randomly start spinning in random directions (done to me several times). Just calm down with lifting up and down the mouse and keep it down (yes even a MM of distance between the mouse pad and the lazer can do this).
Random location in the map???
Probally just a combo between those 2 things right there to make it appear to go to a random location.