From e8bc3209ae61ea5f25e5ff52eae1713d2f1a8186 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 26 Oct 2011 14:20:59 +0200 Subject: [PATCH] [REM] doubleclick workaround for webkit since underlying onclick breakage was worked around in revision xmo@openerp.com-20111026120509-wmj3onhkrnps6xee bzr revid: xmo@openerp.com-20111026122059-w7ak1cvkyfkyrqug --- addons/web_diagram/static/lib/js/dracula_graph.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/addons/web_diagram/static/lib/js/dracula_graph.js b/addons/web_diagram/static/lib/js/dracula_graph.js index 46096e0acb1..28269986e78 100644 --- a/addons/web_diagram/static/lib/js/dracula_graph.js +++ b/addons/web_diagram/static/lib/js/dracula_graph.js @@ -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);