UIGestureRecognizer subclass for detecting tap patterns