partly implement pinch gesture recognizer