Recalculate numeric edits on change only
This commit is contained in:
@@ -991,11 +991,6 @@ function bindEvents() {
|
||||
state.optimizationTarget = event.target.value;
|
||||
updateAnalysis();
|
||||
});
|
||||
$("#recommendationCount").addEventListener("input", (event) => {
|
||||
state.recommendationCount = Math.min(20, Math.max(3, Math.round(parseNumberInput(event.target.value, 8))));
|
||||
formatChangedInput(event, state.recommendationCount);
|
||||
updateAnalysis();
|
||||
});
|
||||
$("#recommendationCount").addEventListener("change", (event) => {
|
||||
state.recommendationCount = Math.min(20, Math.max(3, Math.round(parseNumberInput(event.target.value, 8))));
|
||||
formatChangedInput(event, state.recommendationCount);
|
||||
@@ -1006,7 +1001,6 @@ function bindEvents() {
|
||||
render();
|
||||
setStatus("Current build reset. Draft autosaved.");
|
||||
});
|
||||
$("#gearGrid").addEventListener("input", handleGearInput);
|
||||
$("#gearGrid").addEventListener("change", handleGearInput);
|
||||
$("#saveSlot").addEventListener("click", saveNamedSlot);
|
||||
$("#loadSlot").addEventListener("click", loadNamedSlot);
|
||||
@@ -1022,7 +1016,6 @@ function bindEvents() {
|
||||
updateAnalysis();
|
||||
});
|
||||
$("#swapNewItem").addEventListener("click", swapInNewItem);
|
||||
$(".new-item-card").addEventListener("input", handleNewItemInput);
|
||||
$(".new-item-card").addEventListener("change", handleNewItemInput);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user