Interactive interface for browsing global, full-resolution satellite imagery
add leading debouncer to avoid async problems #1118
Benjamin King592ce6a88bae
diff --git a/web/js/sidebar/ui.js b/web/js/sidebar/ui.jsindex 9d28cd841..a2d9cf1b0 100644--- a/web/js/sidebar/ui.js+++ b/web/js/sidebar/ui.js@@ -31,11 +31,13 @@ export function sidebarUi(models, config, ui) {document.getElementById('wv-sidebar'));var debounceLayerUpdates = lodashDebounce(updateLayers, 300, {- leading: true+ leading: true,+ trailing: true});var debounceUpdateData = lodashDebounce(updateData, 300, { leading: true });var debounceUpdateEventsList = lodashDebounce(updateEventsList, 300, {- leading: true+ leading: true,+ trailing: true});var debounceLayerAdd = lodashDebounce(layer => {@@ -43,7 +45,7 @@ export function sidebarUi(models, config, ui) {updateState('zotsObject', getZotsForActiveLayers(config, models, ui));},300,- { leading: true }+ { leading: true, trailing: true });// Set Event Listeners