From fad101184cdf1bdf9f033001859eba0a8a0e29ce Mon Sep 17 00:00:00 2001 From: tim h Date: Sat, 18 Feb 2023 12:02:21 -0600 Subject: [PATCH 1/2] bugfix --- index.html | 2 +- js/ui/tool/stamp.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 420376e..5adb729 100644 --- a/index.html +++ b/index.html @@ -447,7 +447,7 @@ - + diff --git a/js/ui/tool/stamp.js b/js/ui/tool/stamp.js index 87829d6..3e8c40a 100644 --- a/js/ui/tool/stamp.js +++ b/js/ui/tool/stamp.js @@ -91,7 +91,7 @@ const stampTool = () => mouse.listen.world.btn.left.ondragend.clear(state.dragendcb); mouse.listen.world.onwheel.clear(state.onwheelcb); - keyboard.deleteShortcut(state.togglemirror, "Delete"); + keyboard.deleteShortcut(state.togglemirror, "Equal"); ovLayer.clear(); }, From 2598cb9c41558fe460753177c24af57622a0492b Mon Sep 17 00:00:00 2001 From: tim h Date: Sat, 18 Feb 2023 12:56:53 -0600 Subject: [PATCH 2/2] fixes deleted layer ghosts --- index.html | 2 +- js/lib/layers.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 5adb729..9cd7461 100644 --- a/index.html +++ b/index.html @@ -407,7 +407,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