Skip to content

Commit

Permalink
Merge pull request #2 from mohammednumaan/refactor-and-features
Browse files Browse the repository at this point in the history
fixed bug
  • Loading branch information
mohammednumaan authored Feb 15, 2024
2 parents 126df1d + 22bd8a6 commit f129432
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 f129432

Please sign in to comment.