Reader Question: Turning Off Vertical Scrolling
Is there an easy way to disable vertical scrolling via jQTouch. I have an app that doesn’t require any vertical scrolling so I’d like to get rid of the rubberband effect when a user swipes the screen up or down vertically.
This is possible with some general iPhone programming, but do be careful (this will disable swipes as well…). Basically, you should be able to just use:
$('body').bind('touchmove', function(e){e.preventDefault()});