Fix error with width/height input using local this

This commit is contained in:
javl
2026-08-14 15:41:42 +02:00
parent 8e2b16453a
commit f55e0fc963
+2 -2
View File
@@ -779,7 +779,7 @@ function handleImageSelection(evt) {
w.value = img.width;
settings.screenWidth = img.width;
w.oninput = () => {
canvas.width = this.value;
canvas.width = w.value;
updateAllImages();
updateInteger('screenWidth');
};
@@ -793,7 +793,7 @@ function handleImageSelection(evt) {
h.value = img.height;
settings.screenHeight = img.height;
h.oninput = () => {
canvas.height = this.value;
canvas.height = h.value;
updateAllImages();
updateInteger('screenHeight');
};