diff --git a/js/builder_graph.js b/js/builder_graph.js index a3e0052..899fd6d 100644 --- a/js/builder_graph.js +++ b/js/builder_graph.js @@ -178,6 +178,7 @@ class ItemInputNode extends InputNode { } compute_func(input_map) { + console.log("Item update...." + Date.now()); const powdering = input_map.get('powdering'); // built on the assumption of no one will type in CI/CR letter by letter @@ -337,7 +338,6 @@ class WeaponInputDisplayNode extends ComputeNode { toggle_tab('atree-dropdown'); toggleButton('toggle-atree'); } - console.log(document.getElementById("toggle-atree").classList.contains("toggleOn")); } } diff --git a/js/computation_graph.js b/js/computation_graph.js index 90fe08c..0066186 100644 --- a/js/computation_graph.js +++ b/js/computation_graph.js @@ -139,8 +139,8 @@ class InputNode extends ComputeNode { constructor(name, input_field) { super(name); this.input_field = input_field; - this.input_field.addEventListener("input", () => calcSchedule(this, 5000)); - this.input_field.addEventListener("change", () => calcSchedule(this, 500)); + this.input_field.addEventListener("input", () => calcSchedule(this, 500)); + this.input_field.addEventListener("change", () => calcSchedule(this, 5)); //calcSchedule(this); Manually fire first update for better control } diff --git a/js/display_atree.js b/js/display_atree.js index 0c5254a..888383e 100644 --- a/js/display_atree.js +++ b/js/display_atree.js @@ -36,7 +36,6 @@ function construct_AT(elem, tree) { row.classList.add("row"); row.id = "atree-row-" + j; //was causing atree rows to be 0 height - console.log(elem.scrollWidth / 9); row.style.minHeight = elem.scrollWidth / 9 + "px"; //row.style.minHeight = elem.getBoundingClientRect().width / 9 + "px";