From 78cb4ac630968d5827a6be610d8e9c99a09f63e7 Mon Sep 17 00:00:00 2001 From: Mohammed Numaan <138296610+mohammednumaan@users.noreply.github.com> Date: Thu, 15 Feb 2024 18:01:54 +0530 Subject: [PATCH] fixed bug --- script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script.js b/script.js index 8480130..0c19737 100644 --- a/script.js +++ b/script.js @@ -56,6 +56,7 @@ function sketchHandler(){ addColorToCell(e.target, inkMode) sketchBoard.addEventListener('mouseover', highlightCallback) + window.addEventListener('mouseup', clearHighlightCallback); }) // detaching the mouseover events to prevent unnecessary sketch-cell coloring