Improved the horizontal/vertical swipe recognizer using UISwipeGestureRecognizer