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

index 2d73ba8..764012b 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("touchend", this.onTouchEnd, this);
         }
         
     },
@@ -137,6 +138,8 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
         e.preventDefault();
         
         Roo.log('on touch start');
+        
+        Roo.log(e.touches[0].clientX);
     },
     
     onTouchEnd : function(e)
@@ -144,6 +147,8 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
         e.preventDefault();
         
         Roo.log('on touch end');
+        
+        Roo.log(e.touches[0].clientX);
     }