Added swipe handling for touch devices