remove range change event

This commit is contained in:
mike-000
2022-08-03 16:25:36 +01:00
parent dc9718e389
commit 4eacc92f7f
17 changed files with 42 additions and 80 deletions
+2 -4
View File
@@ -159,12 +159,10 @@ const controls = {};
controlIds.forEach(function (id) {
const control = document.getElementById(id);
const output = document.getElementById(id + 'Out');
const listener = function () {
control.addEventListener('input', function () {
output.innerText = control.value;
raster.changed();
};
control.addEventListener('input', listener);
control.addEventListener('change', listener);
});
output.innerText = control.value;
controls[id] = control;
});