Fix bug for rotation gesture's end state judgment.