audit fix and pan issue fixed

This commit is contained in:
Leamsi Escribano
2021-07-18 10:03:46 -05:00
parent 68dbbdc4c3
commit b8ae07adff
3 changed files with 320 additions and 74 deletions

View File

@ -108,8 +108,7 @@ const Startup = (() => {
}
// Setting up the current layer
layers[1] = new Layer(width, height, layers[1].canvas, layers[1].menuEntry);
currentLayer = layers[1];
currentLayer = new Layer(width, height, canvas, layerListEntry);
currentLayer.canvas.style.zIndex = 2;
// Updating canvas size to the new size