From 005c9afc73650528e748935e68ea2c783cf16f85 Mon Sep 17 00:00:00 2001 From: lolabird Date: Tue, 28 Nov 2023 04:22:12 -0700 Subject: [PATCH] Reset opacity of grid item on erase --- script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script.js b/script.js index 786e62d..030348e 100644 --- a/script.js +++ b/script.js @@ -270,6 +270,7 @@ function colorGrid() { this.style.backgroundColor = "rgb(255, 255, 255)"; } else if (isErase) { this.style.backgroundColor = ""; + this.style.opacity = 0.9; } else { this.style.backgroundColor = colorPicker.value; }