diff --git a/index.html b/index.html index d9e01dd..9cbaee8 100644 --- a/index.html +++ b/index.html @@ -435,7 +435,7 @@ - + diff --git a/js/lib/layers.js b/js/lib/layers.js index 8c14c24..faaf811 100644 --- a/js/lib/layers.js +++ b/js/lib/layers.js @@ -603,11 +603,11 @@ const layers = { // Hides this layer (don't draw) hide() { - this.canvas.style.display = "none"; + this.state.visible = false; }, // Hides this layer (don't draw) unhide() { - this.canvas.style.display = "block"; + this.state.visible = true; }, }, _layerlogpath