Prevent scroll when swipe is detected