Fixed problem where mouse motion dragged out of canvas causes rotations to reverse direction.