Roo/bootstrap/TabPanel.js
authoredward <edward@roojs.com>
Wed, 18 Oct 2017 03:19:22 +0000 (11:19 +0800)
committeredward <edward@roojs.com>
Wed, 18 Oct 2017 03:19:22 +0000 (11:19 +0800)
Roo/bootstrap/TabPanel.js

index 464bbbd..2bbd58a 100644 (file)
@@ -134,30 +134,16 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
         window.location.href = this.href;
     },
     
-    startX : 0,
-    startY : 0,
-    endX : 0,
-    endY : 0,
     swiping : false,
     
     onTouchStart : function(e)
     {
-        e.preventDefault();
-        
         this.swiping = false;
-        
-        this.startX = e.browserEvent.touches[0].clientX;
-        this.startY = e.browserEvent.touches[0].clientY;
     },
     
     onTouchMove : function(e)
     {
-        e.preventDefault();
-        
         this.swiping = true;
-        
-        this.endX = e.browserEvent.touches[0].clientX;
-        this.endY = e.browserEvent.touches[0].clientY;
     },
     
     onTouchEnd : function(e)