Added a Pan gesture recognizer.