remove range change event
This commit is contained in:
@@ -44,13 +44,11 @@ for (variable in variables) {
|
||||
const value = variables[name];
|
||||
element.value = value.toString();
|
||||
document.getElementById(name + '-value').innerText = value.toFixed(2);
|
||||
const listener = function (event) {
|
||||
element.addEventListener('input', function (event) {
|
||||
const value = parseFloat(event.target.value);
|
||||
document.getElementById(name + '-value').innerText = value.toFixed(2);
|
||||
const updates = {};
|
||||
updates[name] = value;
|
||||
layer.updateStyleVariables(updates);
|
||||
};
|
||||
element.addEventListener('input', listener);
|
||||
element.addEventListener('change', listener);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user