Pan gesture recognizer restricts close gesture correctly