diff --git a/website/src/js/graph.js b/website/src/js/graph.js index 13cbaed..cb61746 100644 --- a/website/src/js/graph.js +++ b/website/src/js/graph.js @@ -673,7 +673,7 @@ class Graph { }); function updateChart(transform) { - let mouseP = d3.mouse(this); + let mouseP = d3.event.sourceEvent ? d3.mouse(this) : NaN; if (!Number.isNaN(mouseP[0]) && !Number.isNaN(mouseP[1])) { updateCrossHairs(mouseP); }