fix panning while rotating bug