From 13bff826cd40ca7281c86022e13e16e561ef0cc1 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sun, 31 Dec 2017 00:29:14 +0100 Subject: [PATCH] Remove unneeded doubleclick code --- js/diagrams.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/js/diagrams.js b/js/diagrams.js index cca6294..e1d3f2a 100644 --- a/js/diagrams.js +++ b/js/diagrams.js @@ -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