Fixed layer issue

This commit is contained in:
Leamsi Escribano
2021-01-15 10:11:13 -05:00
parent 9fc5c8e3b8
commit 29746551e1
4 changed files with 12 additions and 9 deletions

View File

@@ -20,7 +20,7 @@ let endRectY;
*/
function startRectDrawing(mouseEvent) {
// Putting the vfx layer on top of everything
VFXCanvas.style.zIndex = MAX_Z_INDEX;
VFXCanvas.style.zIndex = parseInt(currentLayer.canvas.style.zIndex, 10) + 1;;
// Updating flag
isDrawingRect = true;
@@ -141,5 +141,5 @@ function setRectToolSvg() {
}
function applyChanges() {
VFXCanvas.style.zIndex = MIN_Z_INDEX;
//VFXCanvas.style.zIndex = MIN_Z_INDEX;
}