Prevent scrolling when swipe up/down is detected