Initial setting of swipe gesture detection.