Roo/bootstrap/TabPanel.js
authoredward <edward@roojs.com>
Tue, 17 Oct 2017 03:33:30 +0000 (11:33 +0800)
committeredward <edward@roojs.com>
Tue, 17 Oct 2017 03:33:30 +0000 (11:33 +0800)
Roo/bootstrap/TabPanel.js

index a010c36..8aa27ba 100644 (file)
@@ -53,6 +53,7 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
     html: false,
     tabId: false,
     navId : false,
+    swiping : true,
     href : '',
     
     getAutoCreate : function(){
@@ -98,7 +99,9 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
             this.el.on('click', this.onClick, this);
         }
         
-        if(Roo.isTouch)
+        if(Roo.isTouch && this.swiping){
+            this.el.on("touchstart", this.onTouchStart, this);
+        }
         
     },