Swipe detector.