Fix autorotation and long press recognizer bug.