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

index e44000e..116f495 100644 (file)
@@ -134,6 +134,9 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
         window.location.href = this.href;
     },
     
+    startX : 0,
+    startY : 0,
+    
     onTouchStart : function(e)
     {
         e.preventDefault();
@@ -142,7 +145,8 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
         
         Roo.log(e);
         
-        Roo.log(e.browserEvent.touches[0].clientX);
+        this.startX = e.browserEvent.touches[0].clientX;
+        this.startY = e.browserEvent.touches[0].clientY;
     },
     
     onTouchMove : function(e)