Remove unneeded doubleclick code

This commit is contained in:
Jan Philipp Timme 2017-12-31 00:29:14 +01:00
parent b2bb2bc441
commit 13bff826cd

View File

@ -168,7 +168,6 @@ function createLineGraph(containerId, raceData){
.attr("cy", function(d, i) { return y(d.position) })
.attr("r", linePointSize * 1.2)
.on("click", handleClickOnPoint)
.on("dblclick", handleDoubleClickOnPoint)
.on("mouseover", handleMouseOverLinePoint)
.on("mouseout", handleMouseOutLinePoint);
@ -221,7 +220,6 @@ function createLineGraph(containerId, raceData){
.attr("cy", function(d, i) { return y(d.position) })
.attr("r", linePointSize*2.4)
.on("click", handleClickOnPoint)
.on("dblclick", handleDoubleClickOnPoint)
.on("mouseover", handleMouseOverLinePoint)
.on("mouseout", handleMouseOutLinePoint)
.style("opacity", 0);
@ -248,7 +246,6 @@ function createLineGraph(containerId, raceData){
.attr("height", rectSize)
.attr("width", rectSize)
.on("click", handleClickOnPoint)
.on("dblclick", handleDoubleClickOnPoint)
.on("mouseover", handleMouseOverLinePoint)
.on("mouseout", handleMouseOutLinePoint);
@ -358,11 +355,6 @@ function createLineGraph(containerId, raceData){
}
}
function handleDoubleClickOnPoint(d,i){
var lapNr = d.lap;
console.log(["doubleClick", d.lap]);
}
function handleMouseOverLinePoint(d, i) {
var elemType = d3.select(this).attr("data-elemtype");
//depending on Pitstop and lap different Texts