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

index 326ffc7..fa2e162 100644 (file)
@@ -166,11 +166,15 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
             return;
         }
         
-        if(this.startX > this.endX){ // swiping left
+        if(this.startX - this.endX > 10){ // swiping left
             tabGroup.showPanelNext();
             return;
         }
         
+        if(this.href.length){
+            this.onClick(e);
+        }
+        
     }