Problem with windowResized and line drawing

Hi everybody.

I can't find where is the problem with my sketch. Every time I resize the browser's window, the drawing made with line(pmouseX, pmouseY, mouseX, mouseY) disappears. Is this normal? How could I avoid it?

Here is the Pen from it: https://codepen.io/skmecs/pen/LWapZJ

thank you all in advance

best regards, Gil

Answers

Sign In or Register to comment.