}
if(Roo.isTouch && this.swiping){
- p.el.on("touchstart", this.onTouchStart, this);
- p.el.on("touchmove", this.onTouchMove, this);
- p.el.on("touchend", this.onTouchEnd, this);
+ this.el.on("touchstart", this.onTouchStart, this);
+ this.el.on("touchmove", this.onTouchMove, this);
+ this.el.on("touchend", this.onTouchEnd, this);
}
},
e.preventDefault();
window.location.href = this.href;
+ },
+
+ onTouchStart : function(e)
+ {
+ e.preventDefault();
+
+ Roo.log('on touch start');
+
+ Roo.log(e);
+
+ Roo.log(e.browserEvent.touches[0].clientX);
+ },
+
+ onTouchMove : function(e)
+ {
+ e.preventDefault();
+
+ Roo.log('on touch move');
+
+ Roo.log(e);
+ },
+
+ onTouchEnd : function(e)
+ {
+ e.preventDefault();
+
+ Roo.log('on touch end');
+
+ Roo.log(e);
+
}
+
});