Remove extra prints, make response time of nodes much faster
hides a bug that we have where two updates are scheduled if you hit enter and tab... no.......
This commit is contained in:
parent
3f3ed18455
commit
14ab20c446
3 changed files with 3 additions and 4 deletions
|
@ -178,6 +178,7 @@ class ItemInputNode extends InputNode {
|
||||||
}
|
}
|
||||||
|
|
||||||
compute_func(input_map) {
|
compute_func(input_map) {
|
||||||
|
console.log("Item update...." + Date.now());
|
||||||
const powdering = input_map.get('powdering');
|
const powdering = input_map.get('powdering');
|
||||||
|
|
||||||
// built on the assumption of no one will type in CI/CR letter by letter
|
// 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');
|
toggle_tab('atree-dropdown');
|
||||||
toggleButton('toggle-atree');
|
toggleButton('toggle-atree');
|
||||||
}
|
}
|
||||||
console.log(document.getElementById("toggle-atree").classList.contains("toggleOn"));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -139,8 +139,8 @@ class InputNode extends ComputeNode {
|
||||||
constructor(name, input_field) {
|
constructor(name, input_field) {
|
||||||
super(name);
|
super(name);
|
||||||
this.input_field = input_field;
|
this.input_field = input_field;
|
||||||
this.input_field.addEventListener("input", () => calcSchedule(this, 5000));
|
this.input_field.addEventListener("input", () => calcSchedule(this, 500));
|
||||||
this.input_field.addEventListener("change", () => calcSchedule(this, 500));
|
this.input_field.addEventListener("change", () => calcSchedule(this, 5));
|
||||||
//calcSchedule(this); Manually fire first update for better control
|
//calcSchedule(this); Manually fire first update for better control
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,6 @@ function construct_AT(elem, tree) {
|
||||||
row.classList.add("row");
|
row.classList.add("row");
|
||||||
row.id = "atree-row-" + j;
|
row.id = "atree-row-" + j;
|
||||||
//was causing atree rows to be 0 height
|
//was causing atree rows to be 0 height
|
||||||
console.log(elem.scrollWidth / 9);
|
|
||||||
row.style.minHeight = elem.scrollWidth / 9 + "px";
|
row.style.minHeight = elem.scrollWidth / 9 + "px";
|
||||||
//row.style.minHeight = elem.getBoundingClientRect().width / 9 + "px";
|
//row.style.minHeight = elem.getBoundingClientRect().width / 9 + "px";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue