implemented the three gestures of pinching panning and trip tapping