Some work in the resize

This commit is contained in:
mdtrooper 2016-03-14 12:42:07 +01:00
parent 8f8a267e33
commit 27e53d9576
1 changed files with 11 additions and 0 deletions

View File

@ -596,6 +596,17 @@ MapController.prototype.event_resize = function(action, item, handler) {
var transform = d3.transform(handler_d3.attr("transform"));
switch (handler) {
case "N":
case "S":
delta_x = 0;
break;
case "E":
case "W":
delta_y = 0;
break;
}
transform.translate[0] += delta_x;
transform.translate[1] += delta_y;