Implement swipe and tap events