html: false,
tabId: false,
navId : false,
- swiping : true,
href : '',
getAutoCreate : function(){
this.el.on('click', this.onClick, this);
}
- if(Roo.isTouch && this.swiping){
+ if(Roo.isTouch){
this.el.on("touchstart", this.onTouchStart, this);
this.el.on("touchmove", this.onTouchMove, this);
this.el.on("touchend", this.onTouchEnd, this);
startY : 0,
endX : 0,
endY : 0,
-
+ swiping : false,
onTouchStart : function(e)
{
{
e.preventDefault();
+ this.swiping = true;
+
this.endX = e.browserEvent.touches[0].clientX;
this.endY = e.browserEvent.touches[0].clientY;
},