update swipeDirective