I have a script that follows Y-position of mouse and then fills the width of a <canvas>
rectangle as the mouse moves down.
In other words: The lower the mouse - the wider area of the canvas is colored, and vice versa.
Now the problem is that canvas only fills and if the mouse is moved up, the filled area stays the same instead of shrinking.
Thanks in advance!