shx-3d-render
parent
1a8fe4203e
commit
d3935c9dbe
|
@ -531,13 +531,13 @@
|
||||||
// Clean up the element when it is removed from the DOM.
|
// Clean up the element when it is removed from the DOM.
|
||||||
}
|
}
|
||||||
|
|
||||||
renderView() {
|
renderView(debounteTime = 1500) {
|
||||||
let currentTimeout = this.renderViewDebounce;
|
let currentTimeout = this.renderViewDebounce;
|
||||||
if(currentTimeout) {
|
if(currentTimeout) {
|
||||||
clearTimeout(currentTimeout);
|
clearTimeout(currentTimeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.renderViewDebounce = setTimeout(this._renderView.bind(this), 500);
|
this.renderViewDebounce = setTimeout(this._renderView.bind(this), debounteTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
_renderView() {
|
_renderView() {
|
||||||
|
@ -610,7 +610,7 @@
|
||||||
document.querySelector('.shx-ifc-form_label_selected_' + inputID).innerHTML = filament.name;
|
document.querySelector('.shx-ifc-form_label_selected_' + inputID).innerHTML = filament.name;
|
||||||
|
|
||||||
|
|
||||||
this.renderView();
|
this.renderView(50);
|
||||||
}
|
}
|
||||||
|
|
||||||
reloadCurrentVariant(id, openAnimation = false) {
|
reloadCurrentVariant(id, openAnimation = false) {
|
||||||
|
|
Loading…
Reference in New Issue