Skip to content

Commit

Permalink
Now updates numeric inputs as well well as sliders
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorp committed Apr 17, 2024
1 parent 43dd833 commit 419533a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fencer.js
Original file line number Diff line number Diff line change
Expand Up @@ -796,10 +796,14 @@ function updateMappingsSliders(m) {

Qall(".axis").forEach((axisEl, a) => {
const inputSliderEl = axisEl.querySelector(".input.slider");
const inputNumericEl = axisEl.querySelector(".input.numeric");
const outputSliderEl = axisEl.querySelector(".output.slider");
const outputNumericEl = axisEl.querySelector(".output.numeric");

inputSliderEl.value = GLOBAL.mappings[m][0][a];
outputSliderEl.value = GLOBAL.mappings[m][1][a];
inputNumericEl.value = GLOBAL.mappings[m][0][a];
outputNumericEl.value = GLOBAL.mappings[m][1][a];
});
}

Expand Down

0 comments on commit 419533a

Please sign in to comment.