Added ability to disable swipe

I needed to disable swipe, so created this small patch.