Restrict swipe position