From 162fcf9d72ecdad8639e0935556395a3ccf7830e Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Wed, 24 Aug 2016 00:29:24 -0400 Subject: [PATCH] comment for saving lastTransform --- public/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/app.js b/public/js/app.js index 37c2d08..af25614 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -141,7 +141,7 @@ d3.select('svg').append('g').attr('id', 'y-axis').call(yAxis); //y axis is good //callback for zooming var zoomCallback = function(){ - lastTransform = d3.event.transform; + lastTransform = d3.event.transform; //save the transform for later inversion with clicks d3.select('#points').attr("transform", d3.event.transform); //apply transform to g element containing circles //recalculate the axes d3.select('#x-axis').call(xAxis.scale(d3.event.transform.rescaleX(xScale)));