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

index 116f495..3af7897 100644 (file)
@@ -136,6 +136,8 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
     
     startX : 0,
     startY : 0,
+    endX : 0,
+    endY : 0,
     
     onTouchStart : function(e)
     {
@@ -153,11 +155,8 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
     {
         e.preventDefault();
         
-        Roo.log('on touch move');
-        
-        Roo.log(e);
-        
-        Roo.log(e.browserEvent.touches[0].clientX);
+        this.endX = e.browserEvent.touches[0].clientX;
+        this.endY = e.browserEvent.touches[0].clientY;
         
     },