Swipe logic bugfix.