Javascript – Why is my JS-program behaving differently with/without a 'problem line'?
The problem line is in the handleLineEnd function. I ripped off all the lines not necessary to show the problem. Without the line: I can draw multiple rectangles on the ctx. With the line: Each rectangle is overwritten by the…