Fixed visibility of canvas before canvas generation.

This commit is contained in:
npalomba
2019-03-31 18:44:09 +02:00
parent 13cc6fe3b2
commit bd96d01970
3 changed files with 5 additions and 0 deletions

View File

@@ -229,9 +229,11 @@ canvasView.addEventListener("wheel", function(mouseEvent){
mode = 'out';
}
// Changing zoom and position of the first layer
changeZoom(layers[0], mode, getCursorPosition(mouseEvent))
for (let i=1; i<layers.length; i++) {
// Copying first layer's data into the other layers
layers[i].copyData(layers[0]);
}
}