mirror of
https://github.com/javl/image2cpp.git
synced 2026-10-27 06:20:26 +00:00
Fix error with width/height input using local this
This commit is contained in:
1 parent
8e2b16453a
commit
f55e0fc963
1 file changed
+2
-2
+2
-2
@@ -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');
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user