X & Y axis mobile swipe gestures in vanilla JS