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 b0e21ee commit 22bd8a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ 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 22bd8a6

Please sign in to comment.