Callback functions for swipe directions