created a new util that can track both horizontal and vertical swipe gestures.