added pan gesture.