ASmartCoder dawg didn't even read my reply‼️‼️😂🥶🥶💯
addEventListener('mouseup', (event) => {mouse.holding = false})
addEventListener('mouseup', (event) => {mouse.holding = true})
->>
addEventListener('mouseup', () => mouse.holding = false);
addEventListener('mouseup', () => mouse.holding = true);
if you want to make it even shorter:
.onmouseup = ()=> mouse.holding = false;
also 2 onmouseup events? or are they for different elements