In case anyone's interested: This patch seems to work just fine on Android, IPhone3G and IPhone4 devices using their native browsers.
In IPhone Opera and on Windows Mobile I wasn't able to get the IScroll carousel working at all.
=Tim=
onBeforeScrollStart: function (e) {
if(hasTouch) {
point = e.touches[0];
pointStartX = point.pageX;
pointStartY = point.pageY;
null;
}
},
onScrollStart: null,
onBeforeScrollMove: function(e){
if(hasTouch) {
deltaX = Math.abs(point.pageX - pointStartX);
deltaY = Math.abs(point.pageY - pointStartY);
if (deltaX >= deltaY) {
e.preventDefault();
} else {
null;
}
}
},
onBeforeScrollStart: function (e) {
if (this.options.hasTouch) {
point = e.touches[0];
pointStartX = point.pageX;
pointStartY = point.pageY;
}
},
onBeforeScrollMove: function (e) {
if (this.options.hasTouch) {
var point = e.touches[0];