fix swipe to close based on position or velocity, fix swipe to close animation