some code
Apply complete swipe and invert gravity