Im using the jQuery Touchwipe plugin:
http://www.netcu.de/jquery-touchwipe-iphone-ipad-library
With preventDefaultEvents: true its possible to dissable the default dragging behavour on an iPhone. However what I need is to dissable the default behavious in 1 axis only. I need users to be able to drag to scroll up and down, but dragging from left to right needs to be disabled and my function will fire instead. Thanks
I had the same need and extended the touchwipe plugin to pass the event to the wipeLeft, wipeRight, wipeUp and wipeDown callbacks. That allows me to set
preventDefaultEvents: falsein config and then in my specific callbacks if needed, do first thing:e.preventDefault();.I sent modifications to plugin author.
The modified plugin: