Commit 58a2d8ea authored by Marc Duez's avatar Marc Duez
Browse files

scatterplot.js : use jquery bind() for scatterplot mouseevent binded to html body

parent 3693a878
......@@ -189,14 +189,14 @@ ScatterPlot.prototype = {
})
//Actions sur le corps -|- aux sélections
d3.select("body")
.on("mouseup", function() {
self.stopSelector()
})
d3.select("body")
.on("mousemove", function() {
self.updateSelector()
})
$("body").bind("mouseup", function(e) {
d3.event = e;
self.stopSelector()
})
$("body").bind("mousemove", function(e) {
d3.event = e;
self.updateSelector()
})
//Sélection du contenu de l'axe des X -> Ajout d'un attribut valant un id
this.axis_x_container = d3.select("#" + this.id + "_svg")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment