From 3e4ff59a82fd089707c6fa826d49a05fcb447654 Mon Sep 17 00:00:00 2001 From: Robert Best Date: Thu, 6 Oct 2016 23:58:57 -0400 Subject: [PATCH] Update Listeners.js --- frontend/src/Metamaps/Listeners.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Metamaps/Listeners.js b/frontend/src/Metamaps/Listeners.js index 48e50a69..cc5621cb 100644 --- a/frontend/src/Metamaps/Listeners.js +++ b/frontend/src/Metamaps/Listeners.js @@ -132,7 +132,7 @@ const Listeners = { centrePixY = Visualize.mGraph.canvas.canvases[0].size.height / 2, centreCoords = Util.pixelsToCoords({x:centrePixX ,y:centrePixY}); - //Resize the canvas to fill the new indow size, based on how JIT works, this also resets the map back to scale 1 and tranlations = 0 + //Resize the canvas to fill the new window size. Based on how JIT works, this also resets the map back to scale 1 and tranlations = 0 Visualize.mGraph.canvas.resize($(window).width(), $(window).height()) //Return the map to the original scale, and then put the previous central map-coordinate back to the centre of user's newly resized screen