Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammednumaan committed Feb 15, 2024
1 parent 0bcca91 commit 78cb4ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78cb4ac

Please sign in to comment.