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

index a150b13..fb50c9e 100644 (file)
@@ -144,6 +144,8 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
     {
         e.preventDefault();
         
+        this.swiping = false;
+        
         this.startX = e.browserEvent.touches[0].clientX;
         this.startY = e.browserEvent.touches[0].clientY;
     },
@@ -164,6 +166,7 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
         
         if(!this.swiping){
             this.onClick(e);
+            return;
         }
         
         var tabGroup = this.parent();