diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index d2ed3f6..710d894 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -531,13 +531,13 @@ // Clean up the element when it is removed from the DOM. } - renderView() { + renderView(debounteTime = 1500) { let currentTimeout = this.renderViewDebounce; if(currentTimeout) { clearTimeout(currentTimeout); } - this.renderViewDebounce = setTimeout(this._renderView.bind(this), 500); + this.renderViewDebounce = setTimeout(this._renderView.bind(this), debounteTime); } _renderView() { @@ -610,7 +610,7 @@ document.querySelector('.shx-ifc-form_label_selected_' + inputID).innerHTML = filament.name; - this.renderView(); + this.renderView(50); } reloadCurrentVariant(id, openAnimation = false) {