Roo/svg/Canvas.js
authorAlan Knowles <alan@roojs.com>
Wed, 23 Jun 2021 05:57:07 +0000 (13:57 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 23 Jun 2021 05:57:07 +0000 (13:57 +0800)
Roo/svg/Canvas.js

index b7b4cf3..ea2d02a 100644 (file)
@@ -55,6 +55,14 @@ Roo.extend(Roo.svg.Canvas, Roo.BoxComponent,  {
         
         
     },
-   
+    onClick : function(e)
+    {
+        if(this.preventDefault){
+            e.preventDefault();
+        }
+        
+        this.fireEvent('click', this, e); // why was this double click before?
+    },
+    
    
 });
\ No newline at end of file