Added swipe recognition for touch devices