updated swipe detector
updated swipe detector