middle click chages input field

This commit is contained in:
leca 2023-07-31 20:53:38 +03:00
parent 2730b6d871
commit a8c32d7051
1 changed files with 4 additions and 2 deletions

View File

@ -73,7 +73,6 @@
for (let i = 0; i < converted.length; i ++)
imgData.data[i] = converted[i]
console.log(imgData.data)
redraw();
break;
case 1:
@ -199,7 +198,10 @@
}
function changeColor(color) {
if (color == undefined) currentColor = colorInput.value;
else currentColor = color
else {
currentColor = color
colorInput.value = color
}
}