From d3935c9dbe328bdc10d3ba7e3e7333ca441ca207 Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Sat, 22 Jun 2024 17:55:16 +0200 Subject: [PATCH] shx-3d-render --- snippets/shx-3d-render-input.liquid | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {