Add the swipe events detection.