Added pan gesture recognizer.