updated swipe handler

made swipe detection very specific