Update Listeners.js

This commit is contained in:
Robert Best 2016-10-06 23:58:57 -04:00 committed by GitHub
parent 08f89ee630
commit 3e4ff59a82

View file

@ -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