[REM] doubleclick workaround for webkit since underlying onclick breakage was worked...
authorXavier Morel <xmo@openerp.com>
Wed, 26 Oct 2011 12:20:59 +0000 (14:20 +0200)
committerXavier Morel <xmo@openerp.com>
Wed, 26 Oct 2011 12:20:59 +0000 (14:20 +0200)
bzr revid: xmo@openerp.com-20111026122059-w7ak1cvkyfkyrqug

addons/web_diagram/static/lib/js/dracula_graph.js

index 46096e0..2826998 100644 (file)
@@ -160,13 +160,11 @@ Graph.Renderer.Raphael = function(element, graph, width, height) {
      */
     this.isDrag = false;
     this.dragger = function (e) {
-        if(e.detail < 2) {
-            this.dx = e.clientX;
-            this.dy = e.clientY;
-            selfRef.isDrag = this;
-            this.set && this.set.animate({"fill-opacity": .1}, 200);
-            e.preventDefault && e.preventDefault();
-        }
+        this.dx = e.clientX;
+        this.dy = e.clientY;
+        selfRef.isDrag = this;
+        this.set && this.set.animate({"fill-opacity": .1}, 200);
+        e.preventDefault && e.preventDefault();
     };
 
     var d = document.getElementById(element);