Roo/bootstrap/MasonryBrick.js
authoredward <edward@roojs.com>
Wed, 18 Oct 2017 04:40:41 +0000 (12:40 +0800)
committeredward <edward@roojs.com>
Wed, 18 Oct 2017 04:40:41 +0000 (12:40 +0800)
Roo/bootstrap/MasonryBrick.js

index 7c8fbcd..8039d39 100644 (file)
@@ -346,17 +346,17 @@ Roo.extend(Roo.bootstrap.MasonryBrick, Roo.bootstrap.Component,  {
     
     onClick: function(e, el)
     {
-        if(!Roo.isTouch){
-            return;
-        }
-        
         var time = this.endTimer - this.startTimer;
         
-        if(time < 1000){
-            return;
+        if(Roo.isTouch){
+            if(time > 1000){
+                e.preventDefault();
+                return;
+            }
         }
         
-        e.preventDefault();
+        this.fireEvent('click', this);
+        
     },
     
     enter: function(e, el)