onSwipeToClose callback