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

index 115d2c8..8dca663 100644 (file)
@@ -101,6 +101,7 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
         
         if(Roo.isTouch && this.swiping){
             this.el.on("touchstart", this.onTouchStart, this);
+            this.el.on("touchmove", this.onTouchMove, this);
             this.el.on("touchend", this.onTouchEnd, this);
         }
         
@@ -131,31 +132,8 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
         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);
-    },
-    
-    onTouchEnd : function(e)
-    {
-        e.preventDefault();
-        
-        Roo.log('on touch end');
-        
-        Roo.log(e);
-        
-        Roo.log(e.browserEvent.touches[0].clientX);
     }
     
-    
 });