Roo/grid/Grid.js
authorAlan Knowles <alan@roojs.com>
Fri, 20 Dec 2013 03:41:11 +0000 (11:41 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 20 Dec 2013 03:41:11 +0000 (11:41 +0800)
Roo/grid/Grid.js

index c8e3eb7..59c96a9 100644 (file)
@@ -532,9 +532,7 @@ Roo.extend(Roo.grid.Grid, Roo.util.Observable, {
     processEvent : function(name, e){
         // does this fire select???
         Roo.log('grid:processEvent '  + name);
-        if (Roo.isTouch && name == 'click') {
-            return;
-        }
+        
         if (name != 'touchstart' ) {
             this.fireEvent(name, e);    
         }
@@ -550,7 +548,7 @@ Roo.extend(Roo.grid.Grid, Roo.util.Observable, {
             if (name == 'touchstart') {
                 // first touch is always a click.
                 // hopefull this happens after selection is updated.?
-                name = 'click';
+                name = false;
                 
                 if (typeof(this.selModel.getSelectedCell) != 'undefined') {
                     var cs = this.selModel.getSelectedCell();
@@ -565,7 +563,9 @@ Roo.extend(Roo.grid.Grid, Roo.util.Observable, {
                         name = 'dblclick';
                     }
                 }
-                
+                if (!name) {
+                    return;
+                }
             }